Regex pattern validation
- Updated: 2024/08/08
Regex pattern validation
A regex pattern defines an acceptable format for date, number, or text fields. Reference the tables below for common examples:
Text
Field | Pattern | Notes | Description |
---|---|---|---|
^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$
|
This regular expression validates emails like john@ado.com. | The Email field supports regular expressions. | |
Phone Number |
^(\(?\+?[0-9]*\)?)?[0-9_\- \(\)]*$
|
This regular expression validates phone numbers like (+64) 38 3235393. | The Phone Number field supports regular expressions. |
Website |
^([a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+.*)$
|
This regular expression validates websites like www.domain.com. | The Website field supports regular expressions. |
Number string |
^[0-9]{1,45}$
|
This regular expression validates a string with numbers 0 - 9 and limit length to 45. | The Number string field supports regular expressions. |
Alpha-numeric |
^[A-Za-z0-9_@./#&+-]*$
|
This regular expression validates a string containing alphanumeric values like INV-001. | The Alpha-numeric field supports regular expressions. |
Number
Field | Pattern | Notes | Description |
---|---|---|---|
Number string |
^[0-9]{1,45}$
|
This regular expression validates a string with numbers 0 - 9 and limit length to 45. | The Number string field supports regular expressions. |