You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (Jira)" <ji...@apache.org> on 2026/01/05 10:36:05 UTC
[jira] [Resolved] (NIFI-5529) ReplaceText Now Requires Escapes in some cases
[ https://issues.apache.org/jira/browse/NIFI-5529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard resolved NIFI-5529.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the 1.x release line. Marking as resolved as part of a cleanup operation. Please open a new one with an updated description if this is still relevant for NiFi 2.x.
> 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
> Priority: Minor
> Attachments: test_escapes.xml
>
>
> In some cases in v1.7.1 you need to escape backslashes in property ReplacementValue; like when "Replacement Strategy"="Regex Replace". Whereas in v1.4.0 you didn't. However, when "Replacement Strategy"="Always Replace" 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
(v8.20.10#820010)