Can someone help explain what this filter does

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
ssz

Can someone help explain what this filter does

Post 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!!
TheWolfGirl

Post 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
User avatar
Stupid Head
Posts: 214
Joined: Sat Aug 26, 2006 8:11 pm
Location: USA

Post 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.
What, me worry?
sheepy
Posts: 147
Joined: Sat Jun 17, 2006 8:44 pm

Post 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. =<
ecjs
Posts: 170
Joined: Sun Jun 11, 2006 7:39 pm

Post by ecjs »

User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post 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:
ssz

Post 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.
User avatar
rick752
Posts: 2709
Joined: Fri Jun 09, 2006 7:59 pm
Location: New York USA
Contact:

Post 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.
Locked