regex module, or don't work as expected

Fabian Holler fho at mailinator.com
Tue Jul 4 09:00:23 EDT 2006


Howdy,


i have the following regex "iface lo[\w\t\n\s]+(?=(iface)|$)"

If "iface" don't follow after the regex "iface lo[\w\t\n\s]" the rest of
the text should be selected.
But ?=(iface) is ignored, it is always the whole texte selected.
What is wrong?


many thanks

greetings

Fabian



More information about the Python-list mailing list