I am sure this is a simple fix for this, but I've been testing this for hours now and going nowhere!
In AttributeValidator, I want to FAIL an attribute which contains a certain string. The most logical thing I could think of is to use the Contains Regex validation rule. Let's say I want to 'Fail' every attribute where it contains a string which = FME. I have trawled the internet and got the following expression to work within the Regex Editor:
\\b(?!FME)\\b\\S+
However, when it runs in the AttributeValidator, attributes which i have engineered to contain FME, appears from the Passed output port.
1. Is there a much simpler way within the AttributeValidator to fail any attribute which contains a certain string, rather than regex?
2. If not, am I doing something fundamentally wrong with the Regex or validation rule?
Thanks