Regular Expressions 101

Community Patterns

1...34567...877

3~4 length password

-2

Regular Expression
PCRE (PHP <7.3)

/
([A-z])((?![A-z]{2,3}$)\w){2,3}
/
gm

Description

1.the string can be of lenght 3 or 4 2.the string should start with a alphabet 3.the string should contain atleast one alphabet and number.

Submitted by Kerwin - 9 years ago