A RetroSearch Logo

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

Search Query:

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

Some questions about maintenance of the regular expression code.

[Python-Dev] Re: Some questions about maintenance of the regular expression code. [Python-Dev] Re: Some questions about maintenance of the regular expression code.Tim Peters tim.one@comcast.net
Wed, 26 Feb 2003 14:25:14 -0500
An irony is that *? is almost always used like so:

    .*? some_literal_string

where the user *intends* "search right for the first appearance of
some_literal_string, and chew up the characters until then".  If that's what
.*? actually meant (it doesn't), it could be implemented very efficiently
without recursion.  Instead, regexp engines work supernaturally hard to
implement something few users understand, and very few actually want.  I
love regexps <wink>.




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