Regular Expressions 101

Community Patterns

Workout Protocol Identifier

0

Regular Expression
PCRE (PHP <7.3)

/
(^\w*\))\s*(.[^:]*):\s*(.+)
/
gmi

Description

Just a regex to identify the various workout protocols. It's very flexible as it can ignore multiple spaces between strings.

Group 1: Exercise Order Group 2: Exercise Name Group 3: Protocol

Submitted by anonymous - 4 years ago