Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^(Mr|Mrs|Ms|Dr|Er)(\.)([a-zA-Z])+$
/

Description

Checks named titles like Mr., Mrs, Ms. prefixed to names

Submitted by anonymous - 2 years ago