Question

I search every site to find a regular expression for Iranian mobile numbers that start with
091xxxxxxxx or 093xxxxxxxx or 092xxxxxxxx or 090xxxxxxxx .
finally found below solution.Hope to useful for other Persian programmers.

Était-ce utile?

La solution

<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server"  
     ControlToValidate="txtMobile" Display="Dynamic"  
     ErrorMessage="Enter a valid number" ValidationExpression="^09[0-3][0-9]{8}$">    
</asp:RegularExpressionValidator>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top