[IronPython] RE_Match.start with named group

Sanghyeon Seo sanxiyn at gmail.com
Wed Jul 12 22:02:38 PDT 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 users mailing list