M
M
mitnlag2010-09-13 14:52:06
Python
mitnlag, 2010-09-13 14:52:06

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

1 answer(s)
@
@SSoft, 2010-09-13
@mitnlag

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 your question

Ask a Question

731 491 924 answers to any question