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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source Self-made
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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