Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(?=.*[A-Z])[a-zA--ÖØ-öø-ÿœŒ\s\-\']+$
/
gm

Description

Name have to contain between 1 and 32 characters, as follow :

at least 1 uppercase letter

0 or more lowercase letter

0 or more space

0 or more dash

0 or more single quote
Submitted by phil-all - 3 years ago