Regular Expression (Regex) for Phone number with Country code and 10 digits

Last Reply on Nov 19, 2014 11:49 PM By Azaad

Posted on Nov 18, 2014 02:22 AM

I need regular expression for

1)Phone

like 

+919000000000 (country code)(10 digits)

 

 

 

Posted on Nov 18, 2014 02:35 AM

Please refer this HTML code

<asp:TextBox ID="txtPhone" runat="server" />
<asp:RegularExpressionValidator ErrorMessage="Invalid" ControlToValidate="txtPhone"
    ValidationExpression="^[+]{1}[0-9]{12}$" runat="server" />
<asp:Button Text="Save" runat="server" />

Posted on Nov 19, 2014 11:49 PM

Thaks a lot for responces

I got it exact what I want

"^\+(?:[0-9]‚óŹ?){6,14}[0-9]$"

I agree, here is the link: http://e-iceblue.com/free-api