[英]Regex for starting a string with two special characters
I want to write a regular expression to force the user to fill an input with a 10 digit character that should start with 09. Like the followings: 我想编写一个正则表达式,以强制用户用应以09开头的10位字符填充输入。类似于以下内容:
0912345678
0968765432
.
.
.
I wrote th following to check the length: 我写了以下内容来检查长度:
[StringLength(10)]
[MinLength(10)]
Now I dont know how to check that its started with 09. 现在我不知道如何检查其以09开头。
Thanks for any idea. 感谢您的任何想法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.