On Mon, Aug 30, 2010 at 2:56 PM, Hugo Arts <hugo.yo...@gmail.com> wrote:

> To solve, we have the non-greedy patterns. They eat not as much
> possible, but as little as possible. To make a qualifier non-greedy,
> simply add an asterix at its end:
>
> r'<email>WORD1-.*?</email>'
>
> I would also like to offer one small correction: an asterisk may be greedy,
but Asterix is a cheerful, brave Gaul.


-- 
www.fsrtechnologies.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to