Regular Expressions 101

Community Patterns

Replace many spaces to one

1

Regular Expression
PCRE (PHP <7.3)

/
:(\s{2,})[\n|\w.]$
/
gm

Description

no description available

Submitted by anonymous - 4 years ago