Regex, check number between specific range of lengths. C#/ASP.NET
I have the following regex开发者_Go百科 to check if a number with 11 digits are entered
^[0-9]{11}$
Now I instead want to check if the number has 11-14 digits, how should I change my regex?
Thanks in advance.
The {}
can take 2 arguments {min,max}
^[0-9]{11,14}$
精彩评论