Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: grepp -- Perl version of grep

by Anonymous Monk
on Apr 15, 2004 at 19:52 UTC ( [id://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.

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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-03-19 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found