This question is complication of problem in Regex: I want this AND that AND that… in any order. The most up-voted solution of this question is:
^(?=.*one)(?=.*two)(?=.*three).*$
Now what if I need to check not only characters set, but also quantity of characters of certain kind? For example:
- At least two uppercase Latin letters
- At least two lowercase Latin letters
- At least two digits
- At least two of specified special characters
... is any order.
I have no idea where from to begin because I don't understand what ?=.
doing in our case.