[issue28486] Wrong end index and subgroup for group match

2016-10-20 Thread Pavel Cisar
Changes by Pavel Cisar <cisarpa...@gmail.com>: -- versions: +Python 3.5 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28486> ___

[issue28486] Wrong end index and subgroup for group match

2016-10-20 Thread Pavel Cisar
New submission from Pavel Cisar: Hi, python re returns wrong end index of searched group and also subgroup itself. Example: In: price_string = u"1 307 000,00 Kč" In: match = re.search(r"([,\.]00)\s?.*$", price_string) In: print price_string, "|", matc