support multiline regular expression.