Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(?:[\t ]*(?:\r?\n|\r))+
/
gm

Description

Remove all empty lines from text document.

Submitted by anonymous - 2 years ago