add dotall ignore case and multiline to all patterns