Validator.Regex Method
Defines a validation test that tests a value against a pattern specified as a regular expression.
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
public static function Regex( pattern : String, errorMessage : String ) : IValidator
Parameters
- pattern
- Type: System.String
The regular expression to use to test the user input.
- errorMessage
- Type: System.String
The error message to display if validation fails.
Show: