Regular Expressions 101

Community Patterns

Remove Empty Lines

1

Regular Expression
ECMAScript (JavaScript)

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

Description

Loading markdown...
Submitted by anonymous - 8 years ago