Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
Created·2016-06-02 12:19
Flavor·PCRE (Legacy)

/
((?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!"#$%&'()*+,-.:;<=>?@[\]^_`{|}~]).*).{8,10}
/
g
Open regex in editor

Description

I verify if a string contains from 8 to 10 char and at least one of the following: Upper case char, lower case char, number, special character

Submitted by exSnake