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.
Parents
  • 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
Reply
  • 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
Children
No Data