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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Mobile No Validation
Expression
^((\+)?(\d{2}[-]))?(\d{10}){1}?$
Description
This Pattern is to Validate Mobile Number with 10 digit Number and Countrycode as Optional.
Matches
+91-9822345654,9822345654
Non-Matches
+923-9855777897,6463466
Author Rating: The rating for this expression. Amol Pande
Source Own
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: Number after comma is not accepted
Name: Fahad
Date: 7/23/2010 1:34:17 AM
Comment:
+91-9822345654,9822345654 not accepted


Title: Number after comma is not accepted
Name: Fahad
Date: 7/23/2010 12:55:41 AM
Comment:
+91-9822345654,9822345654 not accepted


Title: Good
Name: [email protected]
Date: 8/24/2009 3:43:45 AM
Comment:
Hello,friend... U r code perfectly run. But i also want to validate d foreign mobile number.... ????? plz help...me...!!!!


Title: Mobile No validation
Name: arun
Date: 7/24/2009 3:09:38 AM
Comment:
this expression is working. but we r able to enter +91-1234567890 but the mobile no starts from 9..


Title: US Phone numbers
Name: Shruti
Date: 5/6/2008 6:03:32 AM
Comment:
US phone numbers have alphabets in them , can we change this expression so that it passes the test for US numbers also ?


Title: bad code
Name: jayant
Date: 2/2/2008 2:47:11 AM
Comment:
hi this mob no validation code is very bad untill have the all information


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