Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re: grepp -- Perl version of grep

by Anonymous Monk
on Apr 15, 2004 at 19:52 UTC ( #345520=note: print w/ replies, xml ) Need Help??


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.


Comment on Re: Re: grepp -- Perl version of grep
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://345520]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2015-07-05 04:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls