Is there a regex to match \"all characters including newlines\"?
For example, in the regex below, there is no output from $2 because (.+?)
$2
(.+?)
Add the s modifier to your regex to cause . to match newlines:
.
$string =~ /(START)(.+?)(END)/s;