RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 6 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 6
Title Test Details Pattern Title
Expression
(^1300\d{6}$)|(^1800|1900|1902\d{6}$)|(^0[2|3|7|8]{1}[0-9]{8}$)|(^13\d{4}$)|(^04\d{2,3}\d{6}$)
Description
Australian phone numbers: Matches all known formats incl normal 10-digit landline numbers (valid area code mandatory) 13, 1300, 1800, 1900, 1902 plus mobile 10 and 11-digit formats. Use a Replace function first to remove non-numerics which are probably separators (E.g. newNum = number.replace(/[\D]/g, ""). Please contact me if you find any valid Aussie numbers being rejected.
Matches
0732105432 | 1300333444 | 131313
Non-Matches
32105432 | 13000456
Author Rating: The rating for this expression. Bill Hely
Title Test Details Pattern Title
Expression
^[0-9]{10}$|^\(0[1-9]{1}\)[0-9]{8}$|^[0-9]{8}$|^[0-9]{4}[ ][0-9]{3}[ ][0-9]{3}$|^\(0[1-9]{1}\)[ ][0-9]{4}[ ][0-9]{4}$|^[0-9]{4}[ ][0-9]{4}$
Description
Australian phone numbers including Mobiles and common spacing used. This is used only to test normal contact numbers for residential purposes for example not information lines like 139999. Other Matching: 9999999999, 9999 9999, (09)99999999
Matches
9999 999 999 | (09) 9999 9999 | 99999999
Non-Matches
99999999999 | 9999999 | (99)99999999
Author Rating: Not yet rated. Nathan Hill
Title Test Details Complex Australian Phone Number
Expression
^\({0,1}((0|\+61)(2|4|3|7|8)){0,1}\){0,1}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{2}(\ |-){0,1}[0-9]{1}(\ |-){0,1}[0-9]{3}$
Description
Australian phone number validator. Accepts all forms of Australian phone numbers in different formats (area code in brackets, no area code, spaces between 2-3 and 6-7th digits, +61 international dialing code). Checks that area codes are valid (when entered).
Matches
0403111111 | (03) 1111 1111 | +61403111111 | 02 9111 1111 | 0403 111 111 | 91111111
Non-Matches
9111 11111 | 99 1111 1111
Author Rating: The rating for this expression. A.T.Groom
Title Test Details Phone Numbers: Australian
Expression
^(\+\d{2}[ \-]{0,1}){0,1}(((\({0,1}[ \-]{0,1})0{0,1}\){0,1}[2|3|7|8]{1}\){0,1}[ \-]*(\d{4}[ \-]{0,1}\d{4}))|(1[ \-]{0,1}(300|800|900|902)[ \-]{0,1}((\d{6})|(\d{3}[ \-]{0,1}\d{3})))|(13[ \-]{0,1}([\d \-]{5})|((\({0,1}[ \-]{0,1})0{0,1}\){0,1}4{1}[\d \-]{8,10})))$
Description
Intended to validate Australian Phone Numbers. Very loosely based on Bill Hely's regex, but allows for further options for Country code, (un)bracketed Area code, spaced/hyphenated 8-digit/ Mobile/1X00*/13*.
Matches
+61 02 9123 1234 | +61 3 8123 1234 | +61 7 9123 1234 | +61-04-9123-1234 | +61-2-9123-1234 | +61-8-9123-1234 | +61-7-9123-1234 | +61-(03)-9123-1234 | +61 (03) 9123-1234 | 02 9123 1234 | 03-9123-1234 | (03) 9123 1234 | (07) 9123 1234 | (03) 9123-1234 | 1900-123-322 | 1900 322 232 | 1900322132 | 1902222032 | 1800-132 322 | 1 800 322 222 | 1300232322 | 13 73 23 | 132 221 | 0400 111 222 | 0400111222 | +61 400 111 222 | +61 (0)3 1234 4566 | +61 (0)411222333 | +61 (0)400-000-000
Non-Matches
+61-05-9123-1234 | +61-6-9123-1234 | 19021234567
Author Rating: The rating for this expression. ptooey
Title Test Details Australian Phone Numbers
Expression
(?<local1300>^1300[ |\-]{0,1}\d{3}[ |\-]{0,1}\d{3}$)|(?<tollcall>^1900|1902[ |\-]{0,1}\d{3}[ |\-]{0,1}\d{3}$)|(?<freecall>^1800[ |\-]{0,1}\d{3}[ |\-]{0,1}\d{3}$)|(?<standard>^\({0,1}0[2|3|7|8]{1}\){0,1}[ \-]{0,1}\d{4}[ |\-]{0,1}\d{4}$)|(?<international>^\+61[ |\-]{0,1}[2|3|7|8]{1}[ |\-]{0,1}[0-9]{4}[ |\-]{0,1}[0-9]{4}$)|(?<local13>^13\d{4}$)|(?<mobile>^04\d{2,3}\d{6}$)
Description
This will validate most Australian telephone numbers including 13, 1300, 1800, 1900, std and international +61- format numbers. It allows optional spaces, dashes and brackets in most cases.
Matches
1300 123 123 | 1300123123 | +61212341234 | +61 2 1234 1234 | +61-2-1234-1234 | 02 1234 1234 | (02) 1234-1234
Non-Matches
05 1234 1234 | 1800xyzabc | +64-3-1234123
Author Rating: Not yet rated. Robert Dyball
Title Test Details Australian Phone Numbers
Expression
(^13((\ )?\d){4}$)|(^1[38]00((\ )?\d){6}$)|(^(((\(0[23478]\))|(0[23478]))(\ )?)?\d((\ )?\d){7}$)
Description
matches australian phone numbers
Matches
131234, 13 1 2 3 4, 1300 1 2 3 4 5 6 7 8,130012345678,04 1 2 3 4 5 6 7 8,(04) 123 456 78,(08) 12 34 56 78,07 12345678
Non-Matches
(08 1234 5678,07)12345678
Author Rating: Not yet rated. Nico Dufour
   Displaying page 1 of 1 pages; Items 1 to 6

Copyright © 2001-2014, RegexAdvice.com | ASP.NET Tutorials