[ 
https://issues.apache.org/jira/browse/NIFI-5529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16590599#comment-16590599
 ] 

Mike Boonstra commented on NIFI-5529:
-------------------------------------

Thanks for looking at this Otto. Ran into some problems building NiFi locally 
so haven't had a chance to test it myself yet.

> 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
(v7.6.3#76005)

Reply via email to