Regex that validates Active Directory default password complexity

前端 未结 4 1549
误落风尘
误落风尘 2020-12-19 09:25

I have a list of passwords that I need to examine and determine if they meet the default 3 of 4 rule for AD.

Rule is contain 3 of the 4 following requirements: low

4条回答
  •  孤城傲影
    2020-12-19 10:06

    Does it have to be all one big regex? You could do 4 regexes, each checking one thing and then make sure 3 of the 4 are matches. That would be easier, less error prone and more maintainable.

提交回复
热议问题