Regular Expressions 101

Community Patterns

Detect blank space

1

Regular Expression
PCRE (PHP <7.3)

/
[^a-zA-Z0-9]
/
g

Description

If regex = true the string contain blank space !

Submitted by anonymous - 8 years ago