Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: grepp -- Perl version of grep

by Abigail-II (Bishop)
on Apr 15, 2004 at 23:27 UTC ( #345584=note: print w/ replies, xml ) Need Help??


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

Do you have common regular expressions you'd use 'grepp' for, and for which there's no 'grep' equivalent?

Abigail


Comment on Re: grepp -- Perl version of grep
Re: Re: grepp -- Perl version of grep
by graff (Chancellor) on Apr 16, 2004 at 02:44 UTC
    Well, that bit in the pod about matching GB characters was based on personal experience. Access to Perl 5.8's character-set transliteration and unicode-based character semantics for matches (not to mention the very handy "\p" unicode-based character classes) was the main reason I had to write this tool in the first place. The other bells and whistles (handling compressed data, controlling the input record separator) were after-thoughts -- once I started using this thing on real (multi-language, multi-coded) text data, those other things were just handy and easy to add. But the Encode module was crucial.

    Maybe some people have tricks to search for a specific GB (or Big5, or Shif-JIS) character using plain-old "grep", but I couldn't figure a way to make it trustworhty for such things, and doing it with Perl just made sense.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2015-07-05 15:33 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 (67 votes), past polls