Title: +61 added
Name: Joe
Date: 1/15/2021 4:48:28 AM
Comment:
Hi i modified this to include +61 numbers for standard landline and mobiles:
(^1300\d{6}$)|(^1800|1900|1902\d{6}$)|([(^0)|(^\+61)][2|3|7|8]{1}[0-9]{8}$)|(^13\d{4}$)|([(^0)|(^\+61)]4\d{2,3}\d{6}$)
Title: 11 digit mobile numbers incorrect
Name: Derek
Date: 11/7/2018 1:41:49 AM
Comment:
only 10 digit mobile numbers starting with 04 (and soon 05) are valid in Australia
Title: hh
Name: hh
Date: 11/21/2017 4:49:54 AM
Comment:
941348626
Title: Validation not working
Name: [email protected]
Date: 8/14/2014 3:53:03 AM
Comment:
Hello i am getting problem with this validation when i enter 61403169498 this number i get message enter valid mobile number.
please help me.
Title: why?
Name: Nico
Date: 6/7/2012 3:25:58 AM
Comment:
Why use something like ^0[2|3|7|8]{1} when you can use ^0[2378] ?
Also why use ^04\d{2,3}\d{6}$ when you can use ^04\d{8,9}$ ?
Title: Mr
Name: Loz
Date: 1/11/2011 8:07:18 PM
Comment:
is there a way to use this for data type: integer in infopath. Want to be able for user to input contact number and use regex to match it
Title: there are errors in this format
Name: vj
Date: 5/26/2008 12:28:44 AM
Comment:
it does not work for number starts from 1800, 1900.
i changed the part to (^1800\d{6}|1900\d{6}|1902\d{6}$)
thanks
Title: there are errors in this format
Name: vj
Date: 5/26/2008 12:27:45 AM
Comment:
it does not work for number starts from 1800, 1900.
i changed the part to (^1800\d{6}|1900\d{6}|1902\d{6}$)
thanks
Title: Internalional Format Australian Numbers
Name: Lloyd Borrett
Date: 2/2/2006 11:15:55 PM
Comment:
This expression doesn't handle international format numbers like 61359049005 or 61418170044, which are valid Australian phone numbers. There are also 7 digit 1800 numbers not passed, plus 01 servies numbers not passed.
Try something like:
//
// Function to check an Australian phone number is valid.
//
function is_valid_phone ($strPhone) {
$isValid = false;
// Strip blanks, brackets, periods, dashes and plus
$strPhone = str_replace(array('(', ')', '-', '+', '.', ' '), '', $strPhone);
// Check 10 or 11 digits
switch (strlen($strPhone)) {
case "6":
if (ereg('^(13[0-9]{4})$', $strPhone)) {
$isValid = true;
}
break;
case "7":
if (ereg('^(180[0-9]{4})$', $strPhone)) {
$isValid = true;
}
break;
case "10":
if (ereg('^(((01|02|03|04|07|08|12|19)[0-9]{8})|(1300[0-9]{6})|(180[0-9]{7}))$', $strPhone)) {
$isValid = true;
}
break;
case "11":
if (ereg('^(61(1|2|3|4|7|8)[0-9]{8})$', $strPhone)) {
$isValid = true;
Title: Parse Error in ASP.Net
Name: Jodda
Date: 7/23/2004 6:30:39 AM
Comment:
Too many )'s.
Title: prob with 1800|1900|1902
Name: Mal
Date: 9/15/2003 11:10:40 PM
Comment:
I couldn't get validations to work with 1800 and 1900 numbers - worked fine with 1902 though... I fixed it by separating the the 1800|1900|1902 block but is probably not the ideal solution:
(^1300\d{6}$)|(^1800\d{6}$)|(^1900\d{6}$)|(^1902\d{6}$)|(^0[2|3|7|8]{1}[0-9]{8}$)|(^13\d{4}$)|(^04\d{2,3}\d{6}$)