how could i combine 3 regulation in 1?

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
httpwww
Posts: 6
Joined: Tue Jul 14, 2009 6:14 am

how could i combine 3 regulation in 1?

Post by httpwww »

there is fire command

##DIV[class*="AD"]
##DIV[class*="ad"]
##DIV[id*="AD"]
##DIV[id*="aD"]
##table[id*="AD"]

i mean every kinds of elements that his class or id or other name include "ad"
i want combine this into one expression
and except his name include "admin" or "head" or "load"

thanks.
Dr. Evil
Posts: 194
Joined: Fri Sep 08, 2006 3:51 pm

Post by Dr. Evil »

there are many, many more words in the english language with "ad" in them (e.g. read, mad, bad, sad, add, ...), so this filter will produce lots of false positives.

Anyway, here you go:

Code: Select all

##DIV[class*="AD"]:not([class*=ADMIN]):not([class*=HEAD]):not([class*=LOAD]),DIV[class*="ad"]:not([class*=admin]):not([class*=head]):not([class*=load]),*[id*="AD"]:not([class*=ADMIN]):not([class*=HEAD]):not([class*=LOAD]),DIV[id*="aD"]:not([class*=aDMIN]):not([class*=heaD]):not([class*=loaD])
httpwww
Posts: 6
Joined: Tue Jul 14, 2009 6:14 am

Post by httpwww »

thanks. i'm a chinese user, so this words are used little.
Locked