Forum Discussion
Robert_47833
Nov 22, 2011Altostratus
how to match 6 digtals via command except matches_regex
hi,dear irule
if {$uri matches_regex {-[0-9][0-9][0-9][0-9][0-9][0-9]}} {
pool xxx
}
I don't wanna use matches_regex any more
do u have an alternation method to achieve this...
hooleylist
Jun 04, 2012Cirrostratus
Hi Jucao,
If you need to match any number of digits in an arbitrary position you'll probably need to use a regex. To match one or more digits, you can use [0-9]+ for regex. If you know of a delimiter for the numbers you might be able to use scan or getfield to parse the digits and avoid the high CPU usage of a regex.
Aaron
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