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

Sanghyeon Seo sanxiyn at gmail.com
Sun Jan 21 14:50:32 CET 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 Ironpython-users mailing list