Regular Expressions 101

Community Patterns

Removes formatting chars from string

1

Regular Expression
PCRE (PHP <7.3)

/
\\s+|\\.|&nbsp;
/
gm

Description

Removes formatting chars from string like \n, \r, \t and etc

Submitted by binary_fm - 8 years ago