This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Syntax for Exceptions filtering

hello, we have this syntax filtering exception .*domain.com.*   this will be the same as ^https?://([A-Za-z0-9.-]*\.)domain\.com/ 

we have many domain exception with this syntax, if it is alright, we may leave it as it is?


This thread was automatically locked due to age.
  • The first one also matches http://www.idomainecommercials.org (I do Maine commercials) so, if you don't mind having overly-broad exceptions, it's OK.

    Cheers - Bob
  • In Regex syntax the . is the wildcard and * is the qualifier. That means that .* matches any character or number or other special character any often. So if you have an exception like .*.com.* it will match on any url that has the characters com somewhere in it - that can be more than you want.

    So the other syntax is more tight and produces less false hits. You should search for a simple regex howto - regexes are quite powerful but dangerous if used wrong.

    Regards
    Manfred