Regular Expressions 101

Library entries

Password Validator v1.0

Vote

0

Regular Expression
pcre2

/
(?x) # Matches 10 characters or more, needs capitals & lowercase alphabetical characters, numbers and punctuation repersented ^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[\!-\/\:-\@\[-\`\{-\~])(?:.{10,})$ # Could have used [[:punct:]] for puntuation but regex engine may not support # https://geekalicious.blog for mOAR!
/
gm

Description

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