Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:\A|;)(?:\s*)((?:%macro |%task\b|data |proc )[^;]+)
/
g

Description

Picks up %macro, %inc, data step, and proc boundaries.

Submitted by Leo Lopes - 9 years ago