Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: GREP Question: Filtering out third-party images with Privoxy

by karld12 (Initiate)
on Jan 24, 2014 at 10:14 UTC ( [id://1071921]=note: print w/replies, xml ) Need Help??


in reply to Re^3: GREP Question: Filtering out third-party images with Privoxy
in thread GREP Question: Filtering out third-party images with Privoxy

Thanks again, Ken. After more research and learning I managed to make it work. Though in the end, I settled on simply deleting all .gif images instead of looking for third-party serving because in practice they tend to be hosted locally, even if the link is pointing elsewhere. (But the third-party search can be done, Privoxy provides a variable $host and custom option 'D' to use it.) As an aside, I must say it's not easy finding info on Perl-style regex/grep if you're not actually coding in Perl. For the life of me I haven't been able to find authoritative info on setting delimiters, and was thrown by Privoxy's liberal use of things other than "/". And so on. Will keep learning! Karl
  • Comment on Re^4: GREP Question: Filtering out third-party images with Privoxy

Replies are listed 'Best First'.
Re^5: GREP Question: Filtering out third-party images with Privoxy
by kcott (Archbishop) on Jan 24, 2014 at 11:02 UTC
    "As an aside, I must say it's not easy finding info on Perl-style regex/grep if you're not actually coding in Perl. For the life of me I haven't been able to find authoritative info on setting delimiters, and was thrown by Privoxy's liberal use of things other than "/". And so on. Will keep learning!"

    A good place to start would be "perlretut - Perl regular expressions tutorial". This has links to further, relevant information (including more detailed descriptions of the topics covered in the tutorial).

    Here's the documentation for grep.

    If you have questions arising from any of that documentation, feel free to ask but it would probably be better to raise them in a new thread. Also, the guidelines in "How do I post a question effectively?" will help in getting the best answers.

    -- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-23 09:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found