Forum Discussion
Cole_Libby_1665
Altostratus
Feb 06, 2007Do non-capturing reg exp work in irules?
Hi,
I have a piece of code that uses a non-capturing regex. something like (?:re) It doesn't seem to work as the replacement value always has the piece i want to omit.
set find {(?:href=).*}
set replace {href=http://proxy.dandd.com/pxy?orig_url=http://%newhost%&}
set subs [regsub -all -nocase $find $payload $replace new_response]
Cole
1 Reply
- Deb_Allen_18Historic F5 AccountHi Cole -
set replace {href=http://proxy.dandd.com/pxy?orig_url=http://%newhost%\&}
set find {(?:href=\")(.*?\")} set replace {href=\"http://proxy.dandd.com/pxy?orig_url=http://%newhost%} set subs [regsub -all -nocase $find $payload "$replace\\1" new_response]
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