Regular Expressions 101

Community Patterns

Letters Only

1

Regular Expression
PCRE (PHP <7.3)

/
^(?=.*?[A-Za-z])[A-Za-z+]+$
/

Description

It checks the string to be only letters with no spaces or any other char than a-z and A-z

Submitted by anonymous - 8 years ago