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
/
^(?:(?=.*?\p{N})(?=.*?[\p{S}\p{P} ])(?=.*?\p{Lu})(?=.*?\p{Ll}))[^\p{C}]{8,16}$
/
gm
Input 1
1
New
********** VALID ********** Password1! TestPass###231 My Pass#123~12`1 !#$Afs1!@(*'' VDFt35q#@$@ éA1!@#!@#! ********* INVALID ********* PASSWORD1! password1! Password1 Password Passw1! ThisIsMySuperLongPassword1! Ae! 1
Substitution
********** VALID ********** Password1! TestPass###231 My Pass#123~12`1 !#$Afs1!@(*'' VDFt35q#@$@ éA1!@#!@#! ********* INVALID ********* PASSWORD1! password1! Password1 Password Passw1! ThisIsMySuperLongPassword1! Ae! 1