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.

有帮助吗?

解决方案

<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server"  
     ControlToValidate="txtMobile" Display="Dynamic"  
     ErrorMessage="Enter a valid number" ValidationExpression="^09[0-3][0-9]{8}$">    
</asp:RegularExpressionValidator>
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top