Support re.DOTALL in regex filter

It's useful for processing regular expressions that match content with newlines.