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


Click here to return to the 'Does this accept regular expressions?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Does this accept regular expressions?
Authored by: r0adrage on Dec 02, '02 02:15:53PM

One thing I really loved in OmniWeb was that you could block images (and in fact anything) from being loaded if its URL matches one of the regular expressions, rather than simply a list of hosts.

For example, Yahoo loads all of its images from "us.yimg.com" (and a few variants), but their ads seem to be under "us.yimg.com/.*/a/". In Omniweb I could trivially block those ads while still being able to see the rest. For now I took care of it via the userContent.css (as in the other hint referenced above), but that's not nearly as easy as a preference panel.

I suppose I could look at the code :)



[ Reply to This | # ]
Does this accept regular expressions?
Authored by: cynikal on Dec 02, '02 03:20:15PM

There's a way to use basic regular expression anchors and text matching but not pattern matching. This is done in the css file though.. See my hint comment (5th comment down) at

http://www.macosxhints.com/article.php?story=20021127061854547



[ Reply to This | # ]