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 Check euro / swiss phone numbers
Expression
(((^\+|^0{2})[1-9]{2})|(^0[1-9]{2})) ?[1-9]{1}[\d ]*$
Description
Checks for phone numbers if they begin with either + or 00(countrycode), or with 0. As well there can be no 0 after the countrycode. Only works for 2-digit country codes.
Matches
0041 41 440 84 40|0041414408440|+41 41 440 84 40|+41414408440|041 440 84 40|0414408440
Non-Matches
+41 41 440 84 40|0041-041-440-84-40|040213123123
Author Rating: The rating for this expression. Bugs bunny
   Displaying page 1 of 1 pages; Items 1 to 1

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