Phone Number validation using Regular Expression validation in c# 2008?

Posted by prateeksaluja20 on Stack Overflow See other posts from Stack Overflow or by prateeksaluja20
Published on 2010-05-24T07:14:53Z Indexed on 2010/05/24 7:21 UTC
Read the original article Hit count: 215

Filed under:
|

Hello Experts , I Want to validate the phone number in this format i.e +919981424199,+91231456789,.... I am using Asp.net +c#2008 for developing web site.for this i have used the Regular Expression validation control->property->Validation Expression="[0-9]+(,[0-9]+)*". But this accept the number as 919981424199,..... User may be enter in this way +919981424199,919300951916,so on so i need the validation expression for this type format.The "+" symbol is optional it can be use & it can't.I tried to solve but still i am searching.please help me to sort out this problem. thanks in advance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about asp.net-3.5