[IronPython] re.sub at the start of the string

Sanghyeon Seo sanxiyn at gmail.com
Sun Jan 21 05:50:32 PST 2007


import re
print re.sub('^', 'x', 'abc')

CPython prints xabc, IronPython prints just abc.

For FePy users: you can use FEPY_OPTIONS=regex to avoid this bug for
the time being.

-- 
Seo Sanghyeon


More information about the users mailing list