Thanks for the report Seo.  I've filed bug #11759 
(http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=11759).  
Could you vote on this?  Given that there's no real work around I'd like to 
make sure this one stays on our radar.  Thanks!

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sanghyeon Seo
Sent: Wednesday, July 11, 2007 8:28 PM
To: Discussion of IronPython
Subject: [IronPython] Zero-length regex split

This sucks. I'm not sure which sucks more: that such code exists, or
that it breaks on IronPython in hard-to-find manner.

import re
print re.split(':*', 'a:b::c')

Quick workaround is to replace the pattern ':*' with ':+'. This may
not be always possible.

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