Allows newlines to demarcate expressions, as per MVEL command line.
If expression spans multiple lines (ie inside an unbalanced bracket) then
it is left alone.
Uses character based iteration which is at least an order of magnitude faster then a single
simple regex.