[IronPython] RE_Match.start with named group

Sanghyeon Seo sanxiyn at gmail.com
Thu Jul 13 07:02:38 CEST 2006


# test.py
import re
match = re.match(r'(?P<test>test)', 'test')
print match.span('test')
print match.start('test')
print match.end('test')

Only the second print raises.

This is trivial to fix. At re.cs line 552:

-public int Start(int group) {
+public int Start(object group) {

Seo Sanghyeon



More information about the Ironpython-users mailing list