[IronPython] Zero-length regex split

Sanghyeon Seo sanxiyn at gmail.com
Thu Jul 12 05:27:46 CEST 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 Ironpython-users mailing list