Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Password validation
Open Workspace
JavaScript
Match
Created 2023-01-16 13:01
0
Regular Expression
/
^
(?=
.
*?
[
A
-
Z
]
)(?=
.
*?
[
a
-
z
]
)(?=
.
*?
[
0
-
9
]
)(?=
.
*?
[^
\w\s
]
)
.
{8,}
$
/
Description
Regex used for password validation. A password match the following:
At least 8 characters in length
Minimum of 1 lower-case character
Minimum of 1 upper-case character
Minimum of 1 digit
Minimum of 1 special character (non-whitespace)
Submitted by
Sjoerd de Vries