Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2020-01-15 16:25
Flavor·PCRE (Legacy)

/
(^\s*(?P<att_name>[^:\n]+):\s*?(?P<att_value>.+)?)$
/
mgx
Open regex in editor

Description

Used to spllit lines of an SSL cert into name/value pairs

Submitted by anonymous