Regular Expression Evaluator

The Regular Expression Evaluator is available from the test object map, Script Support Functions dialog box or the Verification Point Editor. You can use it to test a regular expression while editing an object property.


To use the Evaluator

From the test object map or Verification Point Editor, right-click a property value and convert it to a regular expression. When it is a regular expression, right-click again and click Evaluate Regular Expression to open the Evaluator.

The Pattern and Match Against Value fields contain the current value. To try an expression, edit the value in the Pattern field, and click Evaluate. The Result indicates whether the expression matched.

The Evaluator has the following controls:

Pattern - This field contains the current value when you convert to a regular expression. Use this field to edit the expression.

Perform Case Sensitive Match - This check box controls case sensitivity. It is set to "on" by default, and matching is case-sensitive. If you want matching to ignore case, clear this check box.

Match Against Value - This field contains the current value when you convert to a regular expression. The pattern you edit must match this expression because it reflects the property value in your application.

Result - When you click Evaluate, this field contains the result. If the patterns matches, you see MATCH in green letters. If the pattern does not match, you see NOT A MATCH in red letters. If you use an illegal character in your pattern, this field indicates an exception.

Matching String - If the pattern matches, you see the matching string. If you use an illegal character in your pattern, this field gives you the error. For example, "Missing close paren" indicates that you have an open parentheses but not a closing parentheses in the regular expression.

Evaluation Button - Edit the value in the Pattern field, and click this button to test it. Click OK to save the expression when you are satisfied with it.

Examples Button - For examples of regular expression syntax and use cases, see Regular Expression Examples.

For more information about using regular expressions and numeric ranges, see Replace an Exact-Match Property with a Pattern.


Related concepts

Verification Point Editor

Related tasks

Replace an exact-match property with a pattern

Related reference

Regular expression examples