Forum Discussion
coreyva
Jan 31, 2012Nimbostratus
STREAM::expression regex
I'm in the process of writing an irule to correct for some bad code in one of our applications. The app in question has multiple bad links with tildes in it.
Example bad code
img src="~/0.jpg" wi...
coreyva
Jan 31, 2012Nimbostratus
Thanks for the reply. I do have STREAM::disable in the HTTP_REQUEST as well, just didn't post that portion. My bad.
I should have clarified what I was trying to resolve with my regex. I'm want to be able to strip everything before the ~ even if it is multiple levels deep. Unfortunately I don't know the exact depth that the tilde could occur. So while I could continue adding depths to your example, I'd like to find a cleaner way. If not then I'll just do a few depths and see if that doesn't resolve the issue.
On a side note, what tag should I use for HTML so that you can see the code rather than it trying to render it?
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