Regular Expressions 101

Library entries

PEM X509 Certificate Header

Vote

0

Regular Expression
javascript

/
^-----(?:BEGIN|END) (?<label>(?:(?:TRUSTED |X509 )?(?<t1>CERTIFICATE))|(?:(?:NEW )?CERTIFICATE (?<t2>REQUEST))|(?:X509 (?<t3>CRL)))-----$
/
gm

Description

Loading markdown...
Submitted by clarkttfu - a month ago