Regular Expressions 101

Community Patterns

EIS Chef Runlist Regex

1

Regular Expression
PCRE (PHP <7.3)

/
^((?'EMPTY'(""))|'(?'recipe'(\s*recipe\[\w+::\w+@((?'MAJOR'(?:0|(?:[1-9]\d*)))\.(?'MINOR'(?:0|(?:[1-9]\d*)))\.(?'PATCH'(?:0|(?:[1-9]\d*))))],*\s*))+')$
/
gm

Description

no description available

Submitted by anonymous - 9 years ago