Forum Discussion
Stephan_Manthe1
Nimbostratus
Sep 08, 2014Using regex in policy rule condition
Hi,
I´m trying to convert an httpclass to a policy rule. As a condition I need a regular expression, i.e.
conditions {
0 {
http-uri
values { '^/[0-9]{6}$' }
}
...
What_Lies_Bene1
Cirrostratus
Sep 09, 2014Fair point, that certainly suggests extended regexs can be used. Like you, I can't find anything anywhere that actually specifically states what can or cannot be used. All examples are very basic.
Not sure if this is helpful: http://support.f5.com/kb/en-us/solutions/public/14000/900/sol14955.html - seems unlikely.
Clutching at straws, perhaps it has something to do with the quotes?
Also note others with the same problem: https://devcentral.f5.com/questions/ltm-114-traffic-policy-conditions-and-regular-expressions
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects