Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
\(ID\:\ (?<resource_id>[a-z|\d|\ |\-]*[a-z])
/
gm

Description

Grabs the resource ID in terraform job logs

Submitted by anonymous - 5 years ago