Thx to you both for the tips.

Using ${literal('\r')} works great. Clean and simple.



Joe Percivall wrote
> This question actually gets back to a discussion on the user entering
> literal vs. escaped text. In the NiFi UI the user inputs the text into the
> box and then it is converted into a Java String which gets automatically
> escaped in order to pass along the string as the user wrote it (so a
> processor would see the literal characters "\" and "n" when the user wrote
> "\n"). Though sometimes (as evidenced by this case) the user wants the
> control character instead of the literal values entered and Koji's
> suggestion of using EL as a work-around is great. That said, I do believe
> that "${literal('\r')}" can be used instead so that a replace isn't
> needed.
>  





--
View this message in context: 
http://apache-nifi-users-list.2361937.n4.nabble.com/ReplaceText-and-special-characters-tp480p485.html
Sent from the Apache NiFi Users List mailing list archive at Nabble.com.

Reply via email to