Form Validation
Each form field (for example a "First Name" field) can have two types of validation:
- Required: This enforces that the user put at least some information in the field
- Regular Expression: This enforces a specific pattern of characters to be entered by the user
Regular Expressions
Regular Expressions is a standard way for developers to specify a character pattern.
Useful Examples:
| Alphanumeric Characters |
[A-Za-z0-9]* |
Alphabetic Characters
|
[A-Za-z]* |
Digits
|
[0-9]*
|
Email Address
|
([\w\d\-_]+)(\.[\w\d\-_]+)*@([\w\d\-_]+\.)([\w\d\-_]+\.)*([\w]{2,3})
|
Help Links:
|