re.findall() is skipping matching characters

Gustaf Liljegren gustafl at
Tue Oct 16 01:37:25 CEST 2001

"Fredrik Lundh" <fredrik at> wrote:

>try using a non-capturing group instead: (?:x) instead of (x)

Nah, enough of Python peculiarities already. It's hard enough to learn 
regexes without adding a strong Python flavor to it. ;-)

>or better, use the right tool for the task: sgmllib

That worked precisely as I wanted. Thank you very much.

Gustaf Liljegren

More information about the Python-list mailing list