Forum Discussion
gerald_wegener_
Nimbostratus
Jul 11, 2005Regsub always returns a 1 never 0
I've tried running the script that is posted which uses regsub to search for Social Security Numbers in the form xxx-xx-xxxx. I've tried several different permuations of this but can never get anythin...
gerald_wegener_
Nimbostratus
Mar 03, 2006I tried running the lastest script using matchclass but can't get it working. I first created a data group (string) called "ContentTypes" and added text/html, text/css, etc. - and replaced:
when HTTP_RESPONSE {
Only check responses that are a text content type
(text/html, text/xml, text/plain, etc).
if { [HTTP::header "Content-Type"] starts_with "text/" } {
with
when HTTP_RESPONSE {
Only check responses that in the data group "ContentTypes"
(text/html, text/xml, text/plain, etc).
if { [matchclass [HTTP::header "Content-Types] matches $::ContentTypes] } {
I tried a few variations but can't get it to work.
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
