Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

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

Description

Basic sas boundaries, %macro proc %include etc

Submitted by Leo Lopes - 9 years ago