Exclusion filter using Regular expression
Using Sitecore Connector 2, I created an exclusion filter on my source using Regular expression
1 - ^.*\/~\/media\/documents\/(?!(uae)\/).+$
2 - ^.*\/~\/media\/downloads\/(?!(uae)\/).+$
After rebuilding the source, I still see documents from the media/downloads/uae
The second exclusion filter should have eliminated the link, but after rebuilding index, it is still appearing.
What could be the cause of this behavior?
The correct regular expressions are:
You may even need a forward slash at the beginning and at the end of your regular expression but I'm not sure.
Exclusion filters are supposed to match the content to exclude, not the other way around. So if you want to exclude
uae you should not use a negative lookahead but simply match the uae part, something like: