Thanks for the bug report Seo!  I've opened issue 16657 
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=16657) to 
track the bug.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo
Sent: Sunday, May 18, 2008 9:17 PM
To: Discussion of IronPython
Subject: [IronPython] Regular expression option using (?...) syntax is not 
applied

IronPython 2.0 Beta 2.

>>> import re
>>> re.compile(r'^bar', re.M).search('foo\nbar') is not None
True
>>> re.compile(r'^bar(?m)').search('foo\nbar') is not None
False

Two expressions should produce the same result. This blocks Jinja, a
Python template engine.

--
Seo Sanghyeon
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to