【发布时间】:2015-04-01 07:19:55
【问题描述】:
我需要一个在 ASP.NET 中接受6 characters 和的正则表达式
- 在第二个位置它应该只接受
underscore (_)和 - 在第三位它应该接受
underscore (_)或hash (#)和 - 在第四位它应该只接受
hash (#)。
注意:在正则表达式中,用户只能在任何位置输入:Number、Alphabets 或Star (*),而不是上述位置。
谁能帮我解决这个问题?
喜欢:
- a__cde
- ab##cd
- a_#cde
- ******
- abcdef
- 123456
【问题讨论】:
-
这个问题与this one非常相似。
标签: regex