Regular Expressions 101

Community Patterns

indented lines with continuation

1

Regular Expression
PCRE (PHP <7.3)

/
(?m)^(?: +|\t+)\+ *(?:VAR|CONST) *\w+ *=.*(?:\R^(?> +|\t+)[^+\s].*)*
/
g

Description

Example taken from SO,

Submitted by anonymous - 14 days ago