Regular Expression Editor
This dialog box is used for editing the ValidationExpression property of the RegularExpressionValidator control. It offers several predefined formats, such as for telephone numbers and zip codes. You can also edit the format in the text box.
To open this editor:
- Select the RegularExpressionValidator control on the form.
- In the Properties window, click the ellipsis button () for the ValidationExpression property.
The following controls are available in the editor:
- Standard Expressions
- Lists predefined expressions. When you select a name, the corresponding regular expression is defined in the Validation Expression box.
- Validation Expression
- Displays the selected regular expression and allows you to edit it or create your own.
Note The dialog box does not check that the expression you create is valid.
Validating Against Patterns for ASP.NET Server Controls | Regular Expression Syntax