Regular Expressions 101

Sponsors

Library entries

0
javascript

Xerox Product Page

regex to match a product page url
Submitted by anonymous - a month ago
0
python

Phone number

Phone number
Submitted by anonymous - a month ago
0
pcre

Network Address

-
Submitted by anonymous - a month ago
0
python

分组引用

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

模式测试

测试贪婪/非贪婪模式
Submitted by anonymous - a month ago
0
pcre

Wrap word in json with quotes

Wrap word in json with quotes
Submitted by anonymous - a month ago
0
java

时间

时间
Submitted by 旧信 - 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