Use space in lookup for substring on page - url_response probe
search cancel

Use space in lookup for substring on page - url_response probe

book

Article ID: 138370

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

  • How can we search for a string with spaces for the field: "Look for Substring on Page"?
  • It does not seem to accept spaces.

Environment

  • Release: Any
  • Component: url_response

Resolution

Click the checkbox for RegEx. 

The syntax uses PCRE (Perl regex).

https://www.pcre.org/

Also, the regex needs to be surrounded by "/".

For example:

For troubleshooting purposes use the "Test URL" button to test and use the "View Source" button to see how the url_response probe sees the page content.

This might be different than how you see it in a web browser as the web browser might follow a redirect.


Also, be careful of the case you use in the filter (upper versus lower case characters)