regular expression for indian phone numbers.

274 views
Skip to first unread message

ii2team...@gmail.com

unread,
Nov 1, 2014, 12:22:22 AM11/1/14
to suppor...@runmyprocess.com
Hi,

Can i get regular expression to take landline number, mobile number. minimum numbers should be 7 digit

eg: 04953232422,23232422,3232422,07736205371,+917736205371

Hope i will get a reply soon.

Thank you.

Murali

unread,
Nov 1, 2014, 1:30:27 PM11/1/14
to suppor...@runmyprocess.com, ii2team...@gmail.com
Hi,

To accept '+' and other special characters as a valid input, you need to declare the field as Text Input. And include below pattern to validate the min number of 7 digits and other validations like start with India country code 91, 0 for land-line number.

^(?:\+91(?:-)?|0\d{2,4}-|0|)\d{7,10}$

Also refer to below for additional guidelines.
 - http://docs.runmyprocess.com/User_Guide/Development_Environment/Toolbox/Web_Interfaces/Widget/TextInput_Widget.

There are online tutorials available to refer some frequently used expressions.
-http://www.regexplanet.com/cookbook/index.html

Regards,
Murali
Reply all
Reply to author
Forward
0 new messages