Regular Expressions 101

Community Patterns

Community Library Entry

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 - 9 years ago