Yes that's exactly correct.
> On Jun 13, 2016, at 11:14 AM, Joe Percivall <[email protected]> wrote: > > Sorry I got a bit confused, in your original question you said that you > wanted to append the value and I took it that you just wanted to append the > value to the end of the line or text. > > Let me try and restate your goal so I'm sure I understand, ultimately you > want to split the incoming FlowFile on each occurrence of "<POSTransaction > xmlns" and you are planning on using ReplaceText to add "#|#|#" before each > occurrence so that it will be easy to split? > > > Joe > - - - - - - > Joseph Percivall > linkedin.com/in/Percivall > e: [email protected] > > > > On Monday, June 13, 2016 11:05 AM, Anuj Handa <[email protected]> wrote: > > > > Anuj > Hi Joe, > > I modified the process per your suggestion but it only works to replace the > first occurrence, There are multiple such tags which it doesn't replace. . > when i used evaluation mode line by line it appended it to every line in the > file and not to the one i waned too. > > > > > On Mon, Jun 13, 2016 at 10:40 AM, Joe Percivall <[email protected]> > wrote: > > Hello, >> >> In order to use ReplaceText[1] to solely append a value to the end of then >> entire text then change the "Replacement Strategy" to "Append" and leave >> "Evaluation Mode" as "Entire Text". This will take whatever is the >> "Replacement Value" and append it as a literal(without interpreting >> back-references) to the end of the text. >> >> Alternatively, if you want to append to the end of each line then change >> "Evaluation Mode" to "Line-by-Line". >> >> [1] >> https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.ReplaceText/index.html >> >> >> Hope that helps, >> Joe >> - - - - - - Joseph Percivall >> linkedin.com/in/Percivall >> e: [email protected] >> >> >> >> >> On Monday, June 13, 2016 10:05 AM, Anuj Handa <[email protected]> wrote: >> >> >> >> Hi, >> >> I am trying to read a file and then use replaceText to append a string so I >> can spilt the line in the next step. I am nable to make the ReplaceText work. >> The flowfile is going through as success without the string being appended >> or replaced >> >> Any thoughts what i could be doing wrong >>
