Regular Expressions 101

Community Patterns

match secrets in config file with one exp with 3 groups

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(id|key|secret|password)( = |": ")(?P<value>.[^"^\n]+)
/
mg

Description

no description available

Submitted by dilnix - 3 years ago