Regular Expressions 101

Sponsors

Library entries

1
javascript

Color RegEx

Color RegEx
Submitted by Xaliks - a year ago
1
javascript

Zeitnahme

Parses "Zeitnahme" text files
Submitted by anonymous - a year ago
1
java

标点

匹配大部分标点
Submitted by anonymous - a year ago
1
javascript

Regex Alamat

Regex untuk Alamat
Submitted by aji - a year ago
1
java

sfdgvsdgdfg

dgfdgdf
Submitted by anonymous - 10 months ago
1
golang

lsblk-output-regex

Trying to adapt this regex to support LVM.
Submitted by anonymous - 9 months ago

Replace \n by <br />

Vote

2

Regular Expression
javascript

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

Description

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