Regular Expressions 101

Sponsors

Library entries

0
javascript

SRD TEST Internal

Test guts to gather Stat and amount
Submitted by anonymous - 18 hours ago
0
pcre2

Storyblok Assets

Match paths for a.storyblok.com
Submitted by anonymous - a day ago
0
javascript

Storyblok Img2

Parse img2.storyblok.com URLs
Submitted by anonymous - a day ago
0
javascript

Shashi test

Shashi
Submitted by anonymous - 2 days ago
0
pcre2

Init code

Init code
Submitted by anonymous - 2 days ago
1
javascript

Simple CSS selectors

Matches all types of CSS selectors
Submitted by anonymous - 2 days ago

Identify and group Certificate and Private Key from a combination PEM file

Vote

0

Regular Expression
pcre2

/
(?ms)(\s*((?<privatekey>-----BEGIN .* PRIVATE KEY-----.*?-----END .* PRIVATE KEY-----)|(?<certificate>-----BEGIN CERTIFICATE-----.*?-----END CERTIFICATE-----))\s*){2}
/
gm

Description

Loading markdown...
Submitted by @rbleattler - 2 months ago