Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Filter site content in Omniweb using regular expressions Web Browsers
Omniweb can use regular expressions to filter banner ads, or even whole web pages. You can find it in the Preferences, in the Privacy section. There are a few examples to work from, but the gist of it is:
.*\/ads\/.*
The above will match any URL that has /ads/ in it. This should match a lot of advertisements. The .* means "anything." The \/ will match a "/", because just using a "/" has a special meaning for the regular expression. Be careful, though. You could block normal web pages with this feature.

You can read more about regular expressions on the web.

[robg adds: Regular expressions, or regex, are complex but extremely powerful ... here's a Google URL to get you started with some tutorials if you're interested in learning more. You can also use regex on Mail headers, as explained in this hint.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[3,679 views]  

Filter site content in Omniweb using regular expressions | 5 comments | Create New Account
Click here to return to the 'Filter site content in Omniweb using regular expressions' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Filter site content in Omniweb using regular expressions
Authored by: VEGx on Aug 14, '03 12:54:10PM

That's why I used OW for quite some time. But then came Safari... And everyone knows what happened...

There's a handy tool for Safari called PithHelmet that works the same way as the OW built-in ads blocker. Therefore... Safari is for free... it's Apple... it has the same ads blocking tool... ;)

Sowwy, OW :)



[ Reply to This | # ]
Filter site content in Omniweb using regular expressions
Authored by: prk on Aug 14, '03 03:15:26PM

But, OW is only $30 and it has more features than Safari. Not only does it look better (Aqua GUI), but the tool bar works correctly. Did I say it has tons of features...

Another important thing is that it uses the Apple Web Kit, same as Safari. So it renders great!



[ Reply to This | # ]
Filter site content in Omniweb using regular expressions
Authored by: MaxMouseroom on Aug 15, '03 01:52:30AM
Someone correct me if I'm wrong, but doesn't the regex:
.*\/ads\/.*
mean exactly the same thing as:
\/ads\/
?

[ Reply to This | # ]
Filter site content in Omniweb using regular expressions
Authored by: VEGx on Aug 15, '03 05:27:29AM

I may be wrong in this specific case, but if you use -regex with `find' then "\/ads\/" would find "/ads/" and "/ads/" only! that means it has to start with "/" the second letter has to be "a" etc. ".*\/ads\/.*" finds all "/ads/" even if there are other characters before or after it, e.g., "b/ads/" or "/ads/x"



[ Reply to This | # ]
Isn't this the same as Proxy Auth Config?
Authored by: frankie1969 on Aug 15, '03 01:30:42PM
I'd guess this is just a simplified way to implement blocking via Proxy Auth Config, which works in Netscape, Explorer, Opera, etc.

[ Reply to This | # ]