Regular Expressions 101

Community Patterns

Community Library Entry

8

Regular Expression
PCRE (PHP <7.3)

/
^[a-z\d\-_\s]+$
/
i

Description

Alow alphanumeric characters and spaces

Submitted by JTN - 9 years ago (Last modified a year ago)