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

Dino Viehland dinov at exchange.microsoft.com
Mon Jan 22 14:07:07 PST 2007

Thanks for the bug report Seo!  I've filed bug #7531 for this (http://www.codeplex.com/IronPython/WorkItem/View.aspx?WorkItemId=7531).

-----Original Message-----
From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Sanghyeon Seo
Sent: Sunday, January 21, 2007 5:51 AM
To: Discussion of IronPython
Subject: [IronPython] re.sub at the start of the string

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
users mailing list
users at lists.ironpython.com

More information about the users mailing list