replace MULTILINE with DOTALL for regex