Title |
Test
Find
Password with n numbers of digits, upper case character and special character.
|
Expression |
(?=^.{12,25}$)(?=(?:.*?\d){2})(?=.*[a-z])(?=(?:.*?[A-Z]){2})(?=(?:.*?[!@#$%*()_+^&}{:;?.]){2})(?!.*\s)[0-9a-zA-Z!@#$%*()_+^&]*$ |
Description |
User can specify n numbers of digits, upper case character and special character.
In this example, we will use two special characters, digits and upper case in the password.
Explanation:
(?=^.{12,25}$) -- password length range from 12 to 25
(?=(?:.*?[!@#$%*()_+^&}{:;?.]){2}) -- at least 2 special characters (!@#$%*()_+^&}{:;?.})
(?=(?:.*?\d){2}) -- at least 2 digits
(?=.*[a-z]) -- characters a-z
(?=.{2,}[A-Z]) -- at least 2 upper case characters
|
Matches |
PassW0rd@1*3, pAsSword@#123 |
Non-Matches |
PassW0rd@1*, PassW0rd@1*3', PassW0rd@1 3p |
Author |
Rating:
Not yet rated.
Bryian Tan
|
Source |
|
Your Rating |
|
Title: filename that consists of a maximum of 8 alphanumeric characters and can include an underscore followed by a period and a maximum of 3 alphanumeric c
Name: filename that consists of a maximum of 8 alphanumeric characters and can include an underscore followed by a period and
Date: 4/28/2025 2:52:52 AM
Comment:
NA
Title: CISO
Name: Mike Brown
Date: 2/11/2014 4:04:07 PM
Comment:
This does not require upper case.