#259 regex editor bug on group list

open
nobody
None
5
2005-09-16
2005-09-16
Anonymous
No

If use names in a RE expresion, when the values of two
or more groups are equal the name of groups are shown
incorrect:

In Python Editor:

>>> e =
re.match(r'(?P<fisrt_number>\d+)\D*(?P<second_number>\d+)',
'1 1')
>>> e.groupdict()
{'second_number': '1', 'fisrt_number': '1'}

With the same expresion boa regex editor shows:

# Name Value
1 fisrt_number 1
2 first_number 1

The name of the group 2 ar incorrect.

Boa v.0.4.4, python 2.4.1

Thanks.

Discussion