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

Azaad
 
on Nov 18, 2014 02:22 AM
7575 Views

I need regular expression for

1)Phone

like 

+919000000000 (country code)(10 digits)

 

 

 

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Azim
 
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" />
Azaad
 
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]$"