use*_*364 1 regex vb.net
我正在寻找一个能满足以下情况的正则表达式:
有效: 001 where ones place can be 0-9 011 where ones and tens place can be 0-9 111 where all places can be 0-9
001 where ones place can be 0-9
011 where ones and tens place can be 0-9
111 where all places can be 0-9
无效: 1 11
1
11
我把这些表达式分组并不是很好,这就是我迷失的地方.我可以做基本的事情但是得到这种类型的细节是我的联盟.任何帮助赞赏!
Tod*_*ddR 5
为了简化您的问题,看起来您想要一个0到999之间的值,如果小于100,则必须用零填充.
尝试 \d{3}
\d{3}
归档时间:
12 年,8 月 前
查看次数:
1099 次
最近记录:
12 年,7 月 前