in reply to multi line pattern match

Is there a reason you can't combine all of the lines into a single scalar to simplify your regex?