Directory Update Regular Expressions (REGEX)
Directory Update v1.3 allows for telephone number format validation using
Regular Expressions. The default APPSETTINGS.XML file contains a limited number
of examples. As we get requests for additional telephone number formats, we will
add them here.
| Format name |
Examples |
Regular Expression (REGEX) |
| USA |
(808) 123-4567 or
808-123-4567 or
(808) 123-4566 x2221 |
((\(\d{3}\) ?)|(\d{3}-))\d{3}-\d{4}(( x)\d{1,5}| )? |
| UK |
+44 (0) 123 456 7890 or
+44 (0) 1234 56789 |
(\+44 )(\(0\) )((\d{3} )(\d{3} )\d{4}|(\d{4} )\d{6})(( x)\d{1,5}| )? |
| Australia |
+61 2 1234 5678 or
+61 (0)2 1234 5678 |
(\+61 )((\(0\))?\d )(\d{4} )\d{4}(( x)\d{1,5}| )? |
For more information, see:
Regular
Expression Library
Regular Expression Tutorial
|