Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^([A-Z][a-z]*(\s+[A-Z][a-z]*))$
/

Description

Two words, each word first letter capital

Submitted by Phani Rahul Sivalenka - 9 years ago