开发者

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}$
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜