Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE2 (PHP >=7.3)

/
^[a-zA-Z ]{2,30}$
/
gm

Description

Regular Expression

	^[a-zA-Z ]{2,30}$
  • Allow only letters and space between each characters to support for multi word single name. Only accepts english letter characters.
Submitted by Sowed Castelli - 3 years ago