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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find India phone number..that is Landline number
Expression
^[0][1-9]{2}(-)[0-9]{8}$ and ^[0][1-9]{3}(-)[0-9]{7}$ and ^[0][1-9]{4}(-)[0-9]{6}$
Description
India phone(landline) number, accept 0 for prefix and - (hifen) after the STD code.
Matches
021-23456789,0221-2345678 and 02221-234567 respectively
Non-Matches
none..u can change it according to you need..
Author Rating: The rating for this expression. Sunny Raheja
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..that is Landline number
Name: Vijitha
Date: 1/13/2010 2:55:58 AM
Comment:
Good Job.Useful to all.


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