Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^[\\p{L} .'-]+$
/

Description

Regex that matches any kind of letter from any language \p{L} Unicode letter \s whitespace '.-

Submitted by Haroun SMIDA - 8 years ago