Regular Expressions 101

Library entries

Replace \n by <br />

Vote

2

Regular Expression
javascript

/
(\n|\\n)(?!$)
/
g

Description

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