Categories
How to match multiline text with regexp in python?
How to match text from file with regexp in python? not limited to \r\n.
Answer the question
In order to leave comments, you need to log in
re.compile(pattern[, flags]) specify re.S or re.DOTALL as a flag In general, all this is in the manual in Python (module re).
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question