Regular Expressions 101

Library entries

Validate password policy

Vote

0

Regular Expression
javascript

/
^((?=.*[0-9])(?=.*[a-z])|(?=.*[0-9])(?=.*[A-Z])|(?=.*[A-Z])(?=.*[a-z])|(?=.*[^A-Za-z0-9\s])(?=.*[a-z])|(?=.*[^A-Za-z0-9\s])(?=.*[A-Z])|(?=.*[^A-Za-z0-9\s])(?=.*[0-9])).{5,}$
/
g

Description

Loading markdown...
Submitted by anonymous - 5 years ago