You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mike Boonstra (JIRA)" <ji...@apache.org> on 2018/08/16 20:56:00 UTC
[jira] [Created] (NIFI-5529) ReplaceText Now Requires Escapes in
some cases
Mike Boonstra created NIFI-5529:
-----------------------------------
Summary: ReplaceText Now Requires Escapes in some cases
Key: NIFI-5529
URL: https://issues.apache.org/jira/browse/NIFI-5529
Project: Apache NiFi
Issue Type: Bug
Components: Extensions
Affects Versions: 1.7.1
Reporter: Mike Boonstra
In some cases in v1.7.1 you need to escape backslashes in property ReplacementValue; like when "Evaluation Mode"="Regex Replace". Whereas in v1.4.0 you didn't. However, when "Evaluation Mode"="Entire text" it works as it did in v1.4.0.
So for example if before you had this in v1.4.0:
*
{code:java}
"ReplacementValue"=${csvRow:replaceAll(',','\n')}{code}
In v1.7.1 you would need (note the extra backslash):
*
{code:java}
"ReplacementValue"=$\{csvRow:replaceAll(',','\\n')}{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)