A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-February/033730.html below:

[Python-Dev] Some questions about maintenance of the regular expression code.

[Python-Dev] Some questions about maintenance of the regular expression code. [Python-Dev] Some questions about maintenance of the regular expression code.Fred L. Drake, Jr. fdrake@acm.org
Wed, 26 Feb 2003 13:39:54 -0500
M.-A. Lemburg asked:
 > Hmm, could you explain where ".*?" is useful ?

Gary Herron responded:
 > Yes, easily.  It's the non-greedy version of "match all".  The manual
 > page for the re module has this nice example:

I think the problem is that .*? is too similar to (.*)? -- especially
for people who aren't familiar with the non-greedy versions of the
operators.  This certainly stumped me as well.

I'm not sure what can be done about that, though.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4