Forum Discussion
Phil_Dindak
Nimbostratus
Mar 28, 2018Regex alternative suggestion for string replacement
I have a couple of regexes that work just fine.
log local0. "original [HTTP::uri]"
if { [HTTP::uri] matches_regex {/lpportal-\d+/?} } {
...
jaikumar_f5
Noctilucent
Mar 28, 2018You can opt the "switch -glob" and "string match" rather than going with matches_regex. As you already know regex do takes high CPU.
iRules 101 - 10 - 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