Regular Expressions 101

Library entries

At least 8 chars, at least a Mayus or special char & at least a number

Vote

0

Regular Expression
javascript

/
((?:(?=^\S{8,}$)(?:(?=\S*\d)(?=\S*[A-Z])(?=\S*[a-z])|(?=\S*\d)(?=\S*[^A-Za-z0-9])(?=\S*[a-z])|(?=\S*[^A-Za-z0-9])(?=\S*[A-Z])(?=\S*[a-z])|(?=\S*\d)(?=\S*[A-Z])(?=\S*[^A-Za-z0-9]))^\S*){8,})
/

Description

Loading markdown...
Submitted by Luis Arias :D - 6 years ago