How to create generic rule?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
Anakunda
Posts: 22
Joined: Fri Apr 01, 2011 8:48 pm

How to create generic rule?

Post by Anakunda »

Hi!
I need some help with building filter for generic rule that applies ta all current and future elements.
All the occurencies of unwanted element follow the naming scheme

myserver.com###block-ad-92
myserver.com###block-ad-21473
myserver.com###block-ad-806
...
...

So I need a rule to match path myserver.com###block-ad- followed by a positive nuber.
However making filter myserver.com###block-ad-* doesnot work.
lewisje
Posts: 2743
Joined: Mon Jun 14, 2010 12:07 pm

Re: How to create generic rule?

Post by lewisje »

You could try myserver.com##[id^="block-ad-"]

Generally, wildcards don't work in hiding rules the way they do in blocking rules.
There's a buzzin' in my brain I really can't explain; I think about it before they make me go to bed.
Anakunda
Posts: 22
Joined: Fri Apr 01, 2011 8:48 pm

Re: How to create generic rule?

Post by Anakunda »

This seems to work, thanks 8)
Locked