Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2016-01-20 03:27
Flavor·PCRE (Legacy)

/
\[(?P<stanza_name>[0-9a-zA-Z-_\ ]*?)\](?P<text>.*?)\n\n
/
gs
Open regex in editor

Description

Pull stanzas from splunk .conf files

Submitted by keith muggleton