Is there a regex to match \"all characters including newlines\"?
For example, in the regex below, there is no output from $2 because (.+?)
$2
(.+?)
You want to use "multiline".
$string =~ /(START)(.+?)(END)/m;