[Nimi Cleanser - Chrome] - Aditional regex entry!

Discussion in 'other software & services' started by m00nbl00d, Apr 30, 2012.

Thread Status:
Not open for further replies.
  1. m00nbl00d

    m00nbl00d Registered Member

    Joined:
    Jan 4, 2009
    Posts:
    6,623
    Hello,

    I've been learning Regular Expressions :D, and I came up with my first one to block Softpedia's ads coming from this link:

    -http://s2.softpedia-static.com/images/aetd/AAETD4.jpg?v=66

    The regular expression I came up with, should block all future ads, even if what's in bold changes.

    The regular expression is the following one:

    Code:
    (\/images\/)[a-z]+\/[A-Z]+[0-9]+\.(jpg\?v=)[0-9]+
    
    Copy and past it to Nimi Cleanser, in the Images Shield at the very end, before /. You should also add | before the regular expression (no spaces between).

    I tested it, and it's working fine. :D

    Cheers


    P.S: Tell me if it's working. Also, tell me if you know of any other ads that it doesn't block. It will also be a great way to learn more about this regular expressions stuff. :thumb:

    P.S 2: [a-z]+\/[A-Z]+[0-9]+\.(jpg\?v=)[0-9]+ would also work... I could even make it smaller, but I want to play on the safe side. lol
     
    Last edited: Apr 30, 2012
Loading...
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.