Validating the syntax and pattern matching of a regular expression

As an administrator, you can validate the syntax and pattern matching of a regular expression by using the Regex Matcher utility.

About this task

The Regex Matcher utility provides administrators with a way to:
  • Practice writing strings.
  • Test that a regular expression is valid and able to be used for advanced replay rules.
Note: Regex Matcher does not test the expression on the Replay sever. The primary purpose of this utility is provide a way for you to practice writing strings and to test for pattern matching in the response.

To validate the syntax and pattern matching of a regular expression:

Procedure

  1. To access the Regex Matcher utility:
    1. Select Options > Replay Rules > Edit Rules Profile.
    2. From the Rule Profile Editor, select New > Add ResponseMod.
      Note: For Mobile sessions, select New > Add MobileMod.

    To access Regex Matcher from a response message in the view area of BBR:

    1. Highlight a text string in the response.
    2. Right-click and select Create Response Modify Rule.
  2. In the Create Response Modify Rule dialog box, enter the text for the rule if it has not been pre-filled.
  3. To test for a valid regex, click the Test.
  4. To test pattern matching, enter text in the Test pattern field.

    If the pattern matches, the background color in the Test pattern field display in green.