Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
^(?=.*\d)(?=.*[^\w\s]).{8,}$
/
mg
Input 1
1
New
Valid passwords: xkM65!asd a8jjxa39!af !r3g3x101! Tr0ub4dor&3 Invalid passwords: correcthorsebatterystaple password jh81? starwarsrulez1
Substitution