What RegEx can I use to define null or empty attributes in StringReplacer? Or do I even need to use RegEx? I'm trying to replace null/empty attributes with UNKNOWN. Seems simple enought but it's giving me fits.
Page 1 / 1
You can use a Tester and set the the operation to Attribute Is Null followed by AttributeSetter
-Sean
A Tester->AttributeSetter would work as Sean suggested.
Be aware that there's an al-in-one NullAttributeReplacer transformer that likewise performs what you are after.
Both suggestions work great! Thank you for the quick responses.
To answer the original question, an expression of "^$" (without the quotes) should match an empty string. It sounds like the NullAttributeReplacer might be more appropriate here, though.