var bodyString = oSession.GetResponseBodyAsString();
if (oSession.oResponse.MIMEType.Contains("html")) {
var regex = /jimmy/;
if (regex.test(bodyString)) {
oSession.oRequest.FailSession (404, "Blocked", "Fiddler blocked product service request");
}
}
Basically, How do I tell Regex to find the string jimmy present in body, if found, then block the page?
Thank you