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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find India Phone Numbers
Expression
^((\+)?(\d{2}[-])?(\d{10}){1})?(\d{11}){0,1}?$
Description
India phone number, accept with optional +91 national code and 0 for land and mobile number prefix . Allows optional - after national code
Matches
+91-9764544544 | 09764544544 | 01087656444 | +91-1087656444
Non-Matches
+91-01087656444 | +91-09764544544 | +9178786765652
Author Rating: The rating for this expression. Vishnu
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: India Phone number
Name: Sunny Raheja
Date: 1/13/2010 2:12:53 AM
Comment:
India phone number, accept 0 for land and mobile number prefix . the formates for mobile and landline are as follows.. 1.Mob:^[0][1-9]{1}[0-9]{9}$ /*Mobile--09123456789*/ 2.Landline: a-^[0][1-9]{2}(-)[0-9]{8}$ /*landline--021-23456789*/ b-^[0][1-9]{3}(-)[0-9]{7}$ /*landline--0221-2345678*/ c-^[0][1-9]{4}(-)[0-9]{6}$ /*landline--02221-234567*/


Title: India Phone number
Name: Vishnu
Date: 7/30/2009 3:05:00 AM
Comment:
Expressions for India phone number


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