Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?=.*\d+)(?=.*[\pL\pM\p{P}\p{S}]+)[\pL\pM\d\p{P}\p{S}]{6,}
/
gu

Description

Match a single word with at least one number and one character (any language character or special character) , minimum 6 character

Submitted by Gehad Mohamed - 7 years ago