re.search much slower then grep on some regular expressions

Sebastian "lunar" Wiesner basti.wiesner at gmx.net
Thu Jul 10 12:34:25 EDT 2008


Marc 'BlackJack' Rintsch <bj_666 at gmx.net>:

> On Mon, 07 Jul 2008 16:44:22 +0200, Sebastian \"lunar\" Wiesner wrote:
> 
>> Mark Wooding <mdw at distorted.org.uk>:
>> 
>>> Sebastian "lunar" Wiesner <basti.wiesner at gmx.net> wrote:
>>> 
>>>> # perl -e '("a" x 100000) =~ /^(ab?)*$/;'
>>>> zsh: segmentation fault  perl -e '("a" x 100000) =~ /^(ab?)*$/;'
>>> 
>>> (Did you really run that as root?)
>> 
>> How come, that you think so?
> 
> The '#' is usually the prompt of root accounts while ordinary users get a
> '$'.

Oh ... I just used "#" as a general placeholder, because I didn't want to
copy my whole two-line prompt ;)  I can assure, that I did not try this as
root ;)  and will use "$" in future ;)

-- 
Freedom is always the freedom of dissenters.
                                      (Rosa Luxemburg)



More information about the Python-list mailing list