Regular Expressions 101

indented lines with continuation

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

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

Description

Example taken from SO,

Submitted by Anonymous