Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Active Directory密码策略的正则表达式_Javascript_Regex_Active Directory - Fatal编程技术网

Javascript Active Directory密码策略的正则表达式

Javascript Active Directory密码策略的正则表达式,javascript,regex,active-directory,Javascript,Regex,Active Directory,我需要具有以下条件的Active Directory密码策略的正则表达式。 我的要求是: at least one digit (0-9) at least one lowercase character at least one uppercase character must contain at least one special character and the length should be minimum 8 characters and maximum of 25 试试这个

我需要具有以下条件的Active Directory密码策略的正则表达式。 我的要求是:

at least one digit (0-9)
at least one lowercase character
at least one uppercase character
must contain at least one special character and 
the length should be minimum 8 characters and maximum of 25

试试这个。它包括空格键验证

((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W]).{8,25})

试试这个。它包括空格键验证

((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W]).{8,25})

试试这个。它包括空格键验证

((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W]).{8,25})

试试这个。它包括空格键验证

((?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\W]).{8,25})

这看起来不错,我会用
[\W]
替换
[\W\u]
,以便将下划线视为特殊字符。这看起来不错,我会用
[\W]
替换
[\W]
,以便将下划线视为特殊字符。这看起来不错,我会将
[\W]
替换为
[\W\u]
,以便将下划线视为特殊字符。这看起来不错,我会将
[\W]
替换为
[\W\u]
,以便将下划线视为特殊字符。