Page 1 of 1

Can someone help explain what this filter does

Posted: Fri Nov 10, 2006 7:48 am
by ssz
Hi new to ABP.

Using http://easylist.adblockplus.org/adblock_rick752.txt subscription and noticed it removes all images from local newpaper website via filter:

/\D\d{2,3}x\d{2,3}\D/

eg. it removed :
http://www.smh.com.au/ffximage/2006/11/ ... x335,0.jpg

Can someone help explain/decipher for me what that filter is removing (probably take me too long to nut out what the expression is reading the intricacies of building an expression via the manual - which I don't plan to write any new ones for myself in a hurry).

thanks!!

Posted: Fri Nov 10, 2006 9:35 am
by TheWolfGirl
\D a non digit character. In your case a space character
\d{2,3} a sequence of 2 or 3 digits
x the character x
\d{2,3} 2 or 3 digits
\D non-digit character matches the period

In the problem url this pattern matches " 470x335."
The pattern typically appears in banner URLs

Posted: Fri Nov 10, 2006 11:23 am
by Stupid Head
That filter isn't in EasyList. In fact, EasyList doesn't use any regular expressions. That filter was imported from some other source. Just delete it or stop using it if it is part of a filter subscription.

Posted: Fri Nov 10, 2006 2:23 pm
by sheepy
Yes It should be some other list.

It's a wonder that rick can get by without regx. My own list already has quite a few creeped in, one of them for a devish dynamic url with '*' in it.
That's quite a good try actually, simple and brillent.

Another, a new addition, blocks uncountable ad folders on 8 domains.
Then there's a tried generic banner pattern, my list's top performer.

Perhaps the worse thing is, my list is far from mature. =<

Posted: Fri Nov 10, 2006 3:34 pm
by ecjs

Posted: Fri Nov 10, 2006 11:24 pm
by rick752
Nice search-out, ecjs! 8)

I think that maybe in the context of that post there, ssz (op) may have thought that it was the EasyList that he had copied from there.

@ssz . If you really want to use the EasyList filters, just click the signature on the bottom of this post.

@ Stu
EasyList doesn't use any regular expressions.
...right again.

@ sheepy
It's a wonder that rick can get by without regx.
I'm just very determined not to, dammit! And sometimes it's not easy. But I'm doing ok. :wink:

Posted: Mon Nov 13, 2006 3:55 am
by ssz
Hey guys, thanks for the explanation and pointing out it is not from the list.
Sorry for mistakingly mentioning it is from the list as I only subscribed to the one list and assumed it was from there. In my preferences it has a top 'folder'?
under the 'add filter' as Advertisement filters and this was on the top followed by googlesyndication, us.yimg.com/a/, etc... don't know how they got there??. After that there is the subscription for easylist
(as I said I am a new user :))

maybe it is the defaults they put there??

anyway thanks all.

Posted: Mon Nov 13, 2006 4:03 am
by rick752
Did you originally have the regular Adblock in your computer before switching to Adblock plus. If you did, it will import your current filters there.

Those filters do not come as a default in ABP.