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.

Was it helpful?

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>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top