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.
我有一个密码文本框,要求如下:
我创建了这个正则表达式:
^.*[a-zA-Z](?=.*\d)(?=.*[@#$%^&+=])(?=.{10,15}).*$
但它也将第一个字符作为数字和特殊字符,这不应该发生。
尝试:
^[a-zA-Z](?=.*\d)(?=.*[@#$%^&+=])(?=.{9,}).*$
看见