Regular Expressions 101

Community Patterns

1...34567...886

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 - 2 months ago