re.findall() is skipping matching characters

Gustaf Liljegren gustafl at algonet.se
Mon Oct 15 19:37:25 EDT 2001


"Fredrik Lundh" <fredrik at pythonware.com> 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