regular expressions

Here you should report unblocked ads, trackers, social media items, annoyances or leftovers from blocked content.
Locked
midas
Senior Member
Senior Member
Posts: 83
Joined: Mon May 07, 2012 6:59 pm

regular expressions

Post by midas »

Hi guys,

I'm not overly familiar with the Adblock syntax. Could you help me with the following question?

If I would like to block the following links:
http://www.diamondleague-oslo.com/dadadada
http://www.diamondleague-monaco.com/dadadada
http://www.diamondleague-eugene.com/dadadada
....

Is there anything I could replace the bold part with so that I could summarise all by one single rule? I've tested a bit, but can't get it right.

Thanks
Midas
Famlam Verified
EasyList Author
EasyList Author
Posts: 1782
Joined: Sun May 09, 2010 11:37 am
Location: The Netherlands

Post by Famlam Verified »

You can replace the bold part by *, which should block all three of the listed items
midas
Senior Member
Senior Member
Posts: 83
Joined: Mon May 07, 2012 6:59 pm

Post by midas »

Well, that didn't work for me. That's why I'm asking. Just tried it in Chrome and FF.

Try opening the following page:
http://www.diamondleague-oslo.com/en/Li ... /Overview/

And try getting rid of the footer.
This works for me: www.diamondleague-oslo.com##DIV[id="footer"]
This doesn't: www.diamondleague-*.com##DIV[id="footer"]
MonztA Verified
EasyList Author
EasyList Author
Posts: 8121
Joined: Thu Jul 26, 2007 4:19 pm
Location: Germany

Post by MonztA Verified »

Try

Code: Select all

diamondleague-oslo.com,diamondleague-eugene.com,diamondleague-monaco.com###footer
midas
Senior Member
Senior Member
Posts: 83
Joined: Mon May 07, 2012 6:59 pm

Post by midas »

Eh yes, but that's exactly what I wanted to avoid.
MonztA Verified
EasyList Author
EasyList Author
Posts: 8121
Joined: Thu Jul 26, 2007 4:19 pm
Location: Germany

Post by MonztA Verified »

There is no other way though.
midas
Senior Member
Senior Member
Posts: 83
Joined: Mon May 07, 2012 6:59 pm

Post by midas »

Ok thanks, I thought it was easier.
Locked