[Tutor] Newbie - regex question

Serdar Tumgoren zstumgoren at gmail.com
Tue Aug 31 00:02:35 CEST 2010

 To make a qualifier non-greedy,

> simply add an asterix at its end:
> r'<email>WORD1-.*?</email>'
Hugo explains this nicely, but I just wanted to make one minor correction
 -- the non-greedy qualifier is the question mark AFTER an the asterisk
(which is what Hugo's code shows but I believe he accidentally left off).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100830/fed85a6f/attachment.html>

More information about the Tutor mailing list