[英]Password RegEx - Minimum 12 char, Should contain 1 Uppercase & Lowercase & Number & Special Char and should not contain more than 2 repeated char
I am looking for an password regEx.我正在寻找一个密码正则表达式。 which should cover the following conditions
应涵盖以下条件
你能试试这个吗?
/^(?!.*([A-Za-z0-9])\\1{2})(?=.*[az])(?=.*[AZ])(?=.*[0-9])(?=.*[!@#\\$%\\^&\\*])(?=.{12,})/.test('some-text-here')
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.