Regular Expressions 101

Sponsors

Library entries

0
python

Phone number

Phone number
Submitted by anonymous - a month ago
0
python

分组引用

分组引用
Submitted by anonymous - a month ago
0
java

时间

时间
Submitted by 旧信 - a month ago
0
python

Remove ANSI escape codes

Remove ANSI escape codes
Submitted by anonymous - a month ago

(experimental) strip whitespace and linebreaks between HTML tags

Vote

1

Regular Expression
javascript

/
(?<=(?<![<](?:pre|code)[^>]*?)[>])(?:[\s\n]*([^<]*?)[\s\n]*)(?=[<](?![\/](?:pre|code)))
/
dig

Description

Loading markdown...
Submitted by Nicholas Berlette (https://github.com/nberlette) - 2 months ago