I have a regex that needs multiline flag. Some where I read I
can pass multiline flag in regex string itself without using
re.compile. If anybody have any idea about how to do that
please reply.
As detailed at [1],
"""
(?iLmsux)
(One or more letters from the set 'i', 'L', 'm', 's', 'u', 'x'.)
samba wrote:
I have a regex that needs multiline flag. Some where I read I can pass
multiline flag in regex string itself without using re.compile. If
anybody have any idea about how to do that please reply.
Include "(?m)" in the regular expression for multiline matching. It's
best to put it a
I have a regex that needs multiline flag. Some where I read I can pass
multiline flag in regex string itself without using re.compile. If
anybody have any idea about how to do that please reply.
--
http://mail.python.org/mailman/listinfo/python-list