Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用 ASP:RegularExpressionValidator 来强制执行最小字符数 (6),但前提是该字段不为空。
有人可以帮我使用正则表达式吗?
试试这个正则表达式:
^(?:.{6,}|)$