[IronPython] re module

Andrzej Krzywda andrzej.krzywda at resolversystems.com
Tue Apr 11 11:36:39 CEST 2006


Hi,

There seems to be a different behaviour in the re module...

Python:

 >>> import re
 >>> re.match("a[bcd]*b", "abcbd").group(1)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
IndexError: no such group

Iron Python (Beta5):

 >>> import re
 >>> re.match("a[bcd]*b", "abcbd").group(1)
''

--
Andrzej



More information about the Ironpython-users mailing list