Forum Discussion
David_Homoney
Nimbostratus
Mar 06, 2008Regex in STREAM
So I am attempting to use regex with the stream profile in an iRule. I need this to catch all hrefs execpt for ones with a css file extension. I have tested this with regex buddy and it looks good, bu...
hoolio
Cirrostratus
Mar 06, 2008Unfortunately, TCL only supports lookaheads in regexes--not lookbehinds (negative or positive). I ran into this issue this week. I ended up having to collect the response content, use a more permissive regex with the regexp command and parse the results to only replace the strings that needed to be replaced. It would have been a lot easier with lookbehinds and a stream rule. Ugh...
http://www.regular-expressions.info/lookaround.html
Finally, flavors like JavaScript, Ruby and Tcl do not support lookbehind at all, even though they do support lookahead.
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
