Re: Working with named groups in re module

2007-01-10 Thread Neil Cerutti
On 2007-01-10, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Neil Cerutti wrote: >> A found some clues on lexing using the re module in Python in >> an article by Martin L÷wis. > >> Here, each alternative in the regular expression defines a >> named group. Scanning proceeds in the following steps:

Re: Working with named groups in re module

2007-01-10 Thread Fredrik Lundh
Neil Cerutti wrote: > A found some clues on lexing using the re module in Python in an > article by Martin L÷wis. > Here, each alternative in the regular expression defines a > named group. Scanning proceeds in the following steps: > > 1. Given the complete input, match the regular expre

Working with named groups in re module

2007-01-10 Thread Neil Cerutti
A found some clues on lexing using the re module in Python in an article by Martin L÷wis. http://www.python.org/community/sigs/retired/parser-sig/towards-standard/ He writes: [...] A scanner based on regular expressions is usually implemented as an alternative of all token definitions. For