Regular Expressions 101

Community Patterns

hw02 cos451

0

Regular Expression
PCRE (PHP <7.3)

/
(?|(quit)|(define) ([A-Za-z_][A-Za-z_0-9]*) (.*)|(print) ([A-Za-z_][A-Za-z_0-9]*)|(run) ([A-Za-z_][A-Za-z_0-9]*) (.*)|(fsa)\n([A-Za-z_][A-Za-z_0-9]*)\n((?!define|print|quit|fsa)[\w\s*])*)
/
gm

Description

no description available

Submitted by anonymous - 5 years ago