FriendFeed - Web-resources

Saturday, January 10, 2009

indian mobile number regular expression

indian mobile number regular expression for validating indian mobile numbers in forms:

^([9]{1})([234789]{1})([0-9]{8})$

4 comments:

Suhail said...

my vodafone INDIAN number is 9176132703

New series are now in and more will come soon. all we can assume as of now is numbers start from 9.

So the updated regular expression is

^([9]{1})([0-9]{9})$

AlexR said...

I am working for company that provides mobile web service (http://www.vringo.com) and we have a huge DB of real phone numbers. I selected only proved numbers and used Sayed's pattern. It seems that some numbers do not start with 9. So I would like to suggest the following pattern:

^[789][0-9]{9}$ for local Indian number and
^91[789][0-9]{9}$ for international Indian number (including country code).

Unknown said...

hey i want to indian mobile regular expression.my pattern is +91-98255-98255.

anybody suggest me???

jodi said...

I found that site very usefull and this survey is very cirious, I ' ve never seen a blog that demand a survey for this actions, very curious... Ben Luker Australia