The following patterns match all various Australian mobile and landline phone numbers including with "+61" country prefix eg:
(02) 9123 6535
03 1234-5345
0412 345 678
+61 2 3456 789
But not:
234 3450 234
a234 534 3432
134567
123456789013
Brackets, white space and hypens are ignored.
NOTE: The 'PRECICE' versions listed here match against the first four or five didgets in a number to ensure that they are valid Australian numbers.
The 'NOT VERY PRECISE' only match against the first and second didgit so may allow invaid numbers
All Australian phone numbers (mobile and landline - area code required)
All Australian phone numbers (landlines only - area code required)
VERY PRECISE
/^\(?(?:\+?61|0)(?:2\)?[ -]?(?:3[ -]?[38]|[46-9][ -]?[0-9]|5[ -]?[0-35-9])|3\)?(?:4[ -]?[0-57-9]|[57-9][ -]?[0-9]|6[ -]?[1-67])|7\)?[ -]?(?:[2-4][ -]?[0-9]|5[ -]?[2-7]|7[ -]?6)|8\)?[ -]?(?:5[ -]?[1-4]|6[ -]?[0-8]|[7-9][ -]?[0-9]))(?:[ -]?[0-9]){6}$/
NOT VERY PRECISE
/^(?:\+?61|\(?0)[2378]\)?(?:[ -]?[0-9]){8}$/
New South Wales landline phone numbers (area code optional)
VERY PRECISE
/^(?:\(?(?:\+?61|0)2\)?[ -]?)?(?:3[ -]?[38]|[46-9][ -]?[0-9]|5[ -]?[0-35-9])(?:[ -]?[0-9]){6}$/
NOT VERY PRECISE
/^(?:\(?(?:\+?61|0)2\)?(?:[ -]?[0-9]){7}[0-9]$/
Victorian and Tasmanian landline phone numbers (area code optional)
VERY PRECISE
/^(?:\(?(?:\+?61|0)3\)?[ -]?)?(?:4[ -]?[0-57-9]|[57-9][ -]?[0-9]|6[ -]?[1-67])(?:[ -]?[0-9]){6}$/
NOT VERY PRECISE
/^(?:\(?(?:\+?61|0)3\)?(?:[ -]?[0-9]){7}[0-9]$/
VERY PRECISE
/^(?:\(?(?:\+?61|0)7\)?[ -]?)?(?:[2-4][ -]?[0-9]|5[ -]?[2-7]|7[ -]?6)(?:[ -]?[0-9]){6}$/
NOT VERY PRECISE
/^(?:\(?(?:\+?61|0)7\)?(?:[ -]?[0-9]){7}[0-9]$/
South Australia, Northern Territory, Western Australia landline phone numbers (area code optional)
VERY PRECISE
/^(?:\(?(?:\+?61|0)8\)?[ -]?)?(?:5[1-4]|6[0-8]|[7-9][0-9])$/
NOT VERY PRECISE
/^(?:\(?(?:\+?61|0)8\)?(?:[ -]?[0-9]){7}[0-9]$/
Australian Mobile phone numbers only
VERY PRECISE
/^(?:\+?61|0)4 ?(?:(?:[01] ?[0-9]|2 ?[0-57-9]|3 ?[1-9]|4 ?[7-9]|5 ?[018]) ?[0-9]|3 ?0 ?[0-5])(?: ?[0-9]){5}$/
NOT VERY PRECISE
/^(?:\(?(?:\+?61|0)4\)?(?:[ -]?[0-9]){7}[0-9]$/