Regular Expression Evaluator
Relevant for: GUI tests, scripted GUI components, and API testing
This dialog box enables you to create and test a regular expression to determine whether it suits your needs. You can enter a regular expression and sample text to test. When you click Highlight, OpenText Functional Testing searches the sample text for matches, highlights these matches, and displays the number of matches.
To access |
|
Important information |
The list of selectable regular expression characters available from this dialog box is also available from other OpenText Functional Testing dialog boxes that contain a selected Regular Expression checkbox and the Smart Regular Expression button . The Regular Expression Evaluator is not supported for regular expressions in the Find and Replace dialog boxes. |
See also |
Conceptual overview: Regular expression characters and usage options Additional related topics: Smart Regular Expression List |
User interface elements are described below:
UI Elements |
Description |
---|---|
Smart Regular Expression. Click to display a list of regular expression characters that you can select. For details on each of the regular expression characters, see Smart Regular Expression List. |
|
Regular Expression |
The regular expression to test. Enter the regular expression in this box. Tip: Click the right arrow to display a list of regular expression characters that you can insert. |
Highlight |
Searches for the regular expression in the Sample text area and highlights all matches. Note: Before you click Highlight, make sure that the text to search is displayed in the Sample text area. |
Sample text |
The text to use when testing the regular expression. Note: Text may already be displayed in the Sample text area when the dialog box opens, depending on the steps you performed to open this dialog box. The Sample text area is editable. You can insert any text to test your regular expression. |
Number of matches |
The number of matches for the regular expression within the sample text. These matches are highlighted in the Sample text area. |