Forum Discussion
David_Homoney
Nimbostratus
Nov 30, 2007Removing some links in payload but not all
So I have a dickens of a problem. I am trying to remove some
hoolio
Cirrostratus
Dec 03, 2007Have you considered using a stream profile to do the replacements? You can use a regex for the search parameters.
And as Deb said if you post more detail on exactly what you're trying to replace with X's, we might be able to help with the regex. On a related note, you can save memory consumption by prefixing regex tokens within parens with '?:'. This avoids unnecessarily capturing matches into backreferences. For example, this '(http[s]?)' could be done with this '(?:http[s]?)'. Also, you shouldn't need to escape forward slashes with backslashes. As Deb suggested, you might want to add a question mark .*? to your wildcard .* to do a lazy match.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
