Regular Expressions 101

Community Library

Your search did not match anything

Community Library Entry

0

Regular ExpressionOpen Workspace

/
(\s)+
/
g

Description
Created·2019-02-24 06:36
Type·Substitution
Flavor·PCRE (Legacy)

string = string.replace(/ +/g," "); for just spaces OR

string = string.replace(/(\s)+/g,"$1"); for turning multiple returns into a single return also.

Submitted by Anonymous
Open Workspace