[issue12789] re.Scanner don't support more then 2 groups on regex

2011-08-20 Thread Matthew Barnett
Matthew Barnett added the comment: Even if this bug is fixed, it still won't work as you expect, and this s why. The Scanner function accepts a list of 2-tuples. The first item of the tuple is a regex and the second is a function. For example: re.Scanner([(r"\d+", number), (r"\w+", word)]

[issue12789] re.Scanner don't support more then 2 groups on regex

2011-08-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, mrabarnett ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue12789] re.Scanner don't support more then 2 groups on regex

2011-08-19 Thread Ângelo Otávio Nuffer Nunes
New submission from Ângelo Otávio Nuffer Nunes : When I use the scanner object in re module, I can create groups on regex and associate this to a method... In [17]: re.Scanner([(r"(\w)(\w)\w", foo)]) Out[17]: But I tryed 3 groups and it raises "invalid SRE code", but I think my regex is no