Password must contains minimum of 8 symbols.
min 2 digits in any order,
min 1 special in any order character and
must not allow whitespaces.
I have something like this:
(?=.*\d.*\d)(?=.*[$/@:?{~!^`\[\]]{1,}).{8,}
UPD solution:
(?=[^\s]*\d){2}(?=[^\s]*[$/@:?{~!^`\[\]]){1,}[^\s]{8,}