Fix issue with multiline RegExps