Charlie,
I am not sure what your use case is here. 'Literal' is not a NiFI
expression language function. If you can give me some detail on what you
are trying to do, I can help you with the NiFi expression language strategy
to accomplish it. Did you create a FlowFile attribute named 'encoding'?
Matt
On Nov 12, 2015 6:15 PM, "Charlie Frasure" <[email protected]> wrote:
> Typos on my regex were just in the email, not the processor. It should
> have read ${encoding:match...
>
> On Thu, Nov 12, 2015 at 6:03 PM, Charlie Frasure <[email protected]
> > wrote:
>
>> This expression does not parse without error:
>> ${literal('utf-8 utf-16 utf-16be utf-16le us-ascii
>> iso-8859-1'):contains(encoding)}
>>
>> Is it not possible to use an attribute in a comparison function?
>> Unexpected token 'encoding' at line 1, column 73. Query: ${literal(utf-8
>> utf-16 utf-16be utf-16le us-ascii iso-8859-1):contains(encoding)}
>>
>> Alternatively, I think a regex should work, but didn't immediately get a
>> match using:
>> ${enconding.match('utf-8|utf-16|utf-16be|utf-16le|us-ascii|iso-8859-1')}
>>
>> Charlie
>>
>>
>
>