Re: How to pass multiline flag to re.sub without using re.complie.

2009-05-23 Thread Tim Chase
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'.)

Re: How to pass multiline flag to re.sub without using re.complie.

2009-05-23 Thread MRAB
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

How to pass multiline flag to re.sub without using re.complie.

2009-05-23 Thread samba
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