The Adblock Project Forum Index The Adblock Project
Pull up a seat ...stay a while.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

quick regexp question

 
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main
View previous topic :: View next topic  
Author Message
itr



Joined: 06 Feb 2005
Posts: 57

PostPosted: Wed May 11, 2005    Post subject: quick regexp question Reply with quote

i'm trying to make a filter to block the majority of imdb ads. however this filter isn't working, i need some more help.

Code:

/imdb\.com/*/(48|38|88|98|09|19|58)\.(swf|gif|jpg)/


i hope you see what i'm trying to do here
the ads are things such as
48.jpg
88.gif
09.swf
Back to top
View user's profile Send private message
kstahl
Support


Joined: 02 Jan 2004
Posts: 1202
Location: Stockholm, Sweden

PostPosted: Thu May 12, 2005    Post subject: Reply with quote

In RegExs the wildcard character is a period. The asterisk means "one or more of the preceding character".

This should work:
Code:
/imdb\.com/.*/(48|38|88|98|09|19|58)\.(swf|gif|jpg)/

_________________
Adblock 0.5.3.042
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.Cool Gecko/20051111 Firefox/1.5
Back to top
View user's profile Send private message
itr



Joined: 06 Feb 2005
Posts: 57

PostPosted: Thu May 12, 2005    Post subject: Reply with quote

ok thanks. just missed one period Razz
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Adblock Project Forum Index -> Main All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group