nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charlie Frasure <charliefras...@gmail.com>
Subject Re: Expression language
Date Thu, 12 Nov 2015 23:14:59 GMT
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 <charliefrasure@gmail.com>
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
>
>

Mime
View raw message