[IronPython] Zero-length regex split
Dino Viehland
dinov at exchange.microsoft.com
Tue Jul 17 18:08:35 CEST 2007
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: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] 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
users at lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
More information about the Ironpython-users
mailing list