Regular Expressions 101

Community Patterns

Two or more whitespace

5

Regular Expression
PCRE (PHP <7.3)

Description

Reeplace all two or more whitespace in string with a single chararter(ej. one whitespace)

Submitted by Lanxe - 9 years ago