Can anyone tell me if I can combine flags like re.IGNORECASE
, re.MULTILINE
and re.DOTALL
for regular expression matching?
r = re.compile(regex, re.IGNORECASE | re.MULTILINE | re.DOTALL)
I need to match an entire paragraph or an expression in one line according to the use case.