Regular Expressions 101

Community Patterns

Alphanumeric and Spaces

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 8 months ago)