<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server"
ControlToValidate="txtMobile" Display="Dynamic"
ErrorMessage="Enter a valid number" ValidationExpression="^09[0-3][0-9]{8}$">
</asp:RegularExpressionValidator>
Persian mobile validation number in ASP.NET
-
15-10-2022 - |
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.
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow