Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
i want to ask that what is the regularexpression for indian landline no.with STD code
Posted 7-Nov-12 19:54pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Please go through Regex for Indian Phone Numbers[^].
 
According to this article -
To accept Indian (Landline) phone numbers check this Regex: /^[0-9]\d{2,4}-\d{6,8}$/
Please try it out and let me know.
 
Thanks...
Comments
Tadit Dash at 8-Nov-12 2:12am
   
Please accept this answer, if it has helped you in any way.
This will help others to find the answer in one go and you will also be awarded with some points for this action...
 
Thanks,
Tadit
Tadit Dash at 8-Nov-12 2:19am
   
Thanks for accepting the answer @nikita.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 8 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100