http://www.perlmonks.org?node_id=345520


in reply to Re: grepp -- Perl version of grep
in thread grepp -- Perl version of grep

agreed. grep does not use regex when matching against simple patterns. most grep implementations use a skip-search aglo ala Boyer-Moore for simple patterns.

Replies are listed 'Best First'.
Re: grepp -- Perl version of grep
by Abigail-II (Bishop) on Apr 15, 2004 at 23:30 UTC
    grep does not use regex when matching against simple patterns.
    And neither does Perl. Unless you want to call '(a|b)(c|d)(e|f)' "simple" - this is a pattern where grep wins big time over Perl.

    Abigail