Regular Expressions 101

Community Patterns

Letters, numbers and blank space

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 - 8 years ago