Regular Expressions 101

Community Patterns

Remove all special chars from string

0

Regular Expression
PCRE (PHP <7.3)

/
[^0-9a-zA-Z]+
/
gm

Description

Remove all special chars from string

Submitted by binary_fm - 8 years ago