Forum Discussion
Robert_47833
Apr 19, 2011Altostratus
question about :matches_regex
Hi,met trouble in matches_regex now
difference in expressions below
set uri [HTTP::path]
{$uri matches_regex "^/(cjj)"} { pool cjj01-BRO }
{$uri matches_regex...
Robert_47833
Apr 19, 2011Altostratus
oh
got it
It is not me who use this matches_regex
Another engineer use this and I need to maintanian this irule ,but confused by ()
So you mean we use a capturing group by the expression in () to capture the matched characters
for example ([0-9]) test321654654
so 321654654 will be captured to $match
and if I use () in matches_regex ,because matches_regex doesn't support saving the matches,so it is useless.it will only work like a normal character without ()
I mean matches_regex will ignore () in my case
right?
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