Better support for multi-line regexes