background image
<< Regular Expression Syntax | Properties dialog >>
<< Regular Expression Syntax | Properties dialog >>
Special characters
Lesson 7 · Using Regular Expressions
65
5 Enter the regular expression for the text you want to check.
In the Checked Text area, click the Constant Value Options button. The
Constant Value Options dialog box opens.
In the Value box, replace the current date with
[0-1][0-9]/[0-3][0-9]/200[0-9]
.
This instructs QuickTest to check that each character in the selected text
matches the number-range format defined by the regular expression. The
expression checks for the following format: MM/DD/200Y.
Select the Regular expression check box. A message box prompts you to
insert the backslash character before each special character. Click No.
Note: Clicking Yes would cause QuickTest to treat the special characters
(
[
), (
-
) and (
]
) as literal characters and not as a regular expression.