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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details Singapore & US phone numbers
Expression
^(\+?\d{1,2}[ -]?)?(\(\+?\d{2,3}\)|\+?\d{2,3})?[ -]?\d{3,4}[ -]?\d{3,4}$
Description
Matches most common varieties of Singapore and US phone numbers, including toll-free numbers. Although untested, it should also match other international phone numbers.
Matches
(+65) 8765 4321 | (+65) 87654321 | (+65) 8765-4321 | (+65)8765 4321 | (+65)87654321 | (+65)8765-4321 | +65 8765 4321 | +65 87654321 | +65 8765-4321 | +658765 4321 | +658765-4321 | +6876543215 | 8765 4321 | 87654321 | 8765-4321 | (408) 765 4321 | (408) 7654321 | (408) 765-4321 | (408)765 4321 | (408)7654321 | (408)765-4321 | +1 (408) 765 4321 | +1 (408) 7654321 | +1 (408) 765-4321 | +1 (408)765 4321 | +1 (408)7654321 | +1 (408)765-4321 | +1 408 765 4321 | +1 4087654321 | +1(408) 765 4321 | +1(408) 7654321 | +1(408) 765-4321 | +1(408)765 4321 | +1(408)7654321 | +1(408)765-4321 | 1 (408) 765 4321
Non-Matches
(+65 8765-4321 | +65 87 432 | 8765 4321 | 8765+4321 | (-408) 765 4321 | +1 (1408) 765 4321
Author Rating: Not yet rated. Tom Doan
   Displaying page 1 of 1 pages; Items 1 to 1

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