RE Module

tobiah st at tobiah.org
Fri Aug 25 17:16:59 EDT 2006


Roman wrote:
> This is excellent.  Thanks a lot.
> 
> Also, what made the expression greedy?

They usually are, by default.  It means that when there
are more than one ways to match the pattern, choose the
one that matches the most text.  Often there are flags
available to change that behavior.  I'm not sure off hand
how to do it with the re module.

-- 
Posted via a free Usenet account from http://www.teranews.com




More information about the Python-list mailing list