Smart Regular Expression List
Relevant for: GUI tests and scripted GUI components
This list:
-
Displays a list of commonly used regular expression characters.
-
Enables you to select a regular expression character from the list and insert it in a value.
-
Enables you to access the Regular Expression Evaluator.
To access |
Click the Expression Builder button to the right of a value box in which regular expressions can be used, such as the Find dialog box. |
See also |
Conceptual overview: Regular expressions and Regular expression characters and usage options Additional related topics: Regular Expression Evaluator |
User interface elements are described below (unlabeled elements are shown in angle brackets):
UI Elements |
Description |
---|---|
<Regular expression options> |
The list of regular expression characters that you can select when creating a regular expression. When you select a regular expression character from the list, UFT One inserts it in the currently open dialog box and closes the list. Depending on its type, a regular expression character can be inserted:
Example: If you select text and then select the [ ] Any character in the set option, the brackets are inserted on either side of the selected text, as follows: [text] Example: If you select text and then select the \d Any digit option, the selected content is replaced with \d. For example, if you select 1 in Document1 and then select the \d Any digit option, the selected content is replaced with \d, as follows: Document1 becomes Document\d The \n New line option is available only if applicable. For details on working with regular expression characters, see Regular expression characters and usage options. |
Open Regular Expression Evaluator |
Opens the Regular Expression Evaluator dialog box, enabling you to test your regular expression to make sure that it suits your needs. This command is not available from the Smart Regular Expression List dialog box. |