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
AWS Cognito Default Password Policy
Open Workspace
PCRE2 (PHP)
Match
Updated 2025-03-05 13:32
2
Regular Expression
/
^
(
(?=
.
*?
[
A
-
Z
]
)(?=
.
*?
[
a
-
z
]
)(?=
.
*?
[
0
-
9
]
)(?=
.
*?
[
\^
$*.[
\]
{}()?
\-
"!@#%&
\/\,
><':;|_~`+=
]
)
.
{7,}
)
\S$
/
gm
Description
Password requirements
Contains at least 1 number
Contains at least 1 special character
Contains at least 1 uppercase letter
Contains at least 1 lowercase letter
It follows AWS in allowing white-space.
Submitted by
danieldspx