re.search much slower then grep on some regular expressions
Sebastian "lunar" Wiesner
basti.wiesner at gmx.net
Sat Jul 5 19:26:05 EDT 2008
Terry Reedy <tjreedy at udel.edu>:
> Mark Dickinson wrote:
>> On Jul 5, 1:54 pm, Carl Banks <pavlovevide... at gmail.com> wrote:
>
>> Part of the problem is a lack of agreement on what
>> 'regular expression' means.
>
> Twenty years ago, there was. Calling a extended re-derived grammar
> expression like Perl's a 'regular-expression' is a bit like calling a
> Hummer a 'car' -- perhaps to hide its gas-guzzling behavior.
Yet, to many programmers the Hummer is not only just a car, its _the_ car.
Everything else is just silly, bloody old posix crap ;)
(meaning, that pcres are often seen as true regular expressions, and
everything else is referred to as "being somehow restricted")
--
Freedom is always the freedom of dissenters.
(Rosa Luxemburg)
More information about the Python-list
mailing list