Community Patterns

Community Library Entry

2

Regular Expression
Created·2014-03-27 08:56
Flavor·ECMAScript (JavaScript)

/
(\n|\\n)(?!$)
/
g
Open regex in editor

Description

Replace non-ending string \n by the <br /> HTML tag

Submitted by anonymous