Regular Expressions 101

Community Patterns

Community Library Entry

9

Regular Expression
PCRE (PHP <7.3)

/
^[a-zA-Z0-9 ]*$
/

Description

The following regular expression matches only letter a-z A-Z numbers 0-9 and a blank space for a given string.

Submitted by Jordan Raychev - 9 years ago