See the dojox/validate/regexp reference documentation for more information.
Builds a regular expression that matches an email address
Parameter | Type | Description |
---|---|---|
flags | Object |
Optional
|
Builds a regular expression that matches a list of email addresses.
Parameter | Type | Description |
---|---|---|
flags | Object |
Optional
|
Builds a RE that matches a host
A host is a named host (A-z0-9_- but not starting with -), a domain name or an IP address, possibly followed by a port number.
Parameter | Type | Description |
---|---|---|
flags | Object |
Optional
|
Builds a RE that matches an IP Address
Supports 5 formats for IPv4: dotted decimal, dotted hex, dotted octal, decimal and hexadecimal. Supports 2 formats for Ipv6.
Parameter | Type | Description |
---|---|---|
flags | Object |
Optional All flags are boolean with default = true.
|
Builds a regular expression to match any sort of number based format
Use this method for phone numbers, social security numbers, zip-codes, etc. The RE can match one format or one of multiple formats.
Format:
Parameter | Type | Description |
---|---|---|
flags | Object |
Optional
|
Builds a regular expression that matches a URL
Parameter | Type | Description |
---|---|---|
flags | Object |
Optional
|