Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
[^\x00-\x7F|\s]
/

Description

Replace non-ascii characters with empty spaces.

Submitted by Huchister - 10 years ago