[ https://issues.apache.org/jira/browse/NIFI-447?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14731310#comment-14731310 ]
Joseph Percivall commented on NIFI-447: --------------------------------------- In the case where we are appending and a line or text ends with an endline character. For line by line I'm thinking we'll keep the endline character as the last character and "append" the replacement value before the endline character. It doesn't really make sense to put more information on a line after an endline character. For entire text though I'm a little torn. I think I'm leaning to ignoring what ever the text ends with and just appending it at the very end. > Add "Replacement Strategy" property to ReplaceText > -------------------------------------------------- > > Key: NIFI-447 > URL: https://issues.apache.org/jira/browse/NIFI-447 > Project: Apache NiFi > Issue Type: Improvement > Components: Extensions > Reporter: Mark Payne > Fix For: 0.4.0 > > > "Regular Expression" property should have displayName changed to "Search > Value" > ReplaceText should allow for a "Replacement Strategy" with values: > Prepend (Search Value is ignored; replacement value prepended to FlowFile) > Append (Search Value is ignored; replacement value appended to FlowFIle) > Regex Replace (current behavior, so this should be default) > Linewise Regex Replace (like current behavior if Evaluation Mode is set to > Line-by-Line) > Literal Replace (do not interpret the Replacement value > The Line-by-Line property should be removed; this is breaking change! -- This message was sent by Atlassian JIRA (v6.3.4#6332)