Regular Expressions 101

Community Patterns

splunk config stanza regex

0

Regular Expression
PCRE (PHP <7.3)

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

Description

Pull stanzas from splunk .conf files

Submitted by keith muggleton - 8 years ago