Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
^ (?!(?:.*[^\W\d_]){2}) (?!(?:.*\d){2}) (?!(?:.*[_!@\#$*]){2}) [\w!@\#$]{3} $
"
gmx
Input 1
1
New
a1! 4B_ *x7 fails ab! BBB *x_ a1!B
Extraction
a1! 4B_ *x7 fails ab! BBB *x_ a1!B