[IronPython] Zero-length regex split

Sanghyeon Seo sanxiyn at gmail.com
Wed Jul 11 20:27:46 PDT 2007

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

More information about the users mailing list