Regular Expressions 101

Community Patterns

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