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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
(^(\+?\-? *[0-9]+)([,0-9 ]*)([0-9 ])*$)|(^ *$)
Description
This is my basic phone number verification. it allows a + - , signs digits, spaces and blank entry
Matches
+0335456 545 545 | -5465 545 | 5456465 5454,545
Non-Matches
fsd54df 54
Author Rating: The rating for this expression. Vitaly Kompot
Source
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

Title: Doesnot support bracket and #
Name: Nizar
Date: 10/17/2006 6:29:02 AM
Comment:
If this expression support brackets and #, could be used for telephone numbers from many countries..... Need bit improvement


Title: It allows just one number
Name: Momo
Date: 10/31/2003 9:01:43 AM
Comment:
Phone numbers are more than one number but this allows one number to be entered. Need improvement.


Title: to mutch spaces!!!!
Name: Jose Tomas
Date: 9/30/2003 1:39:34 PM
Comment:
Hey mister! Didn't you ment only this: (^(\+?\-? *[0-9]+)([,0-9 ]*)([0-9 ])*$) The |(^ *$) gives the possibility of number made by spaces only...


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