Regular Expressions 101

Sponsors

Library entries

0
javascript

Capture Words

Get each word from a text.
Submitted by anonymous - an hour ago
0
pcre

Negative search

Seach pattern that doesn't match
Submitted by Gael Langlais - 18 hours ago
0
javascript

File extension

Parse file extension.
Submitted by Webmato - 21 hours ago
0
java

date dd.mm.yyyy

Date format dd.mm.yyyy
Submitted by anonymous - a day ago
0
pcre2

Invoice nr

regexp search in mongo db by nr
Submitted by Tivadar - a day ago
0
python

apdl flst

apdl flst
Submitted by anonymous - a day ago
0
pcre2

MySQL DATETIME

MySQL DATETIME
Submitted by anonymous - 2 days ago
0
pcre2

Split Http(s) Response

Split Http(s) Response
Submitted by anonymous - 3 days ago
0
pcre2

Vivaldi

Vivaldi
Submitted by anonymous - 4 days 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) - 6 months ago