<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: NiFi how to delete different strings through replacetext in CSV in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-delete-different-strings-through-replacetext-in/m-p/188335#M150431</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/65208/naeemkhan.html" nodeid="65208" target="_blank"&gt;@Naeem Ullah Khan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Change the replace text &lt;STRONG&gt;Replacement Strategy to Regex Replace&lt;/STRONG&gt; because you are using "|"(or operator) to search for all the possible instances in your input csv file by using Evaluation mode as Line-By-Line and change the &lt;STRONG&gt;Replacement value &lt;/STRONG&gt;property to &lt;STRONG&gt;empty string&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;&lt;STRONG&gt;Always Replace &lt;/STRONG&gt;will replace the entire flowfile contents based on Evaluation mode property &amp;lt;value&amp;gt; without searching for any value.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReplaceText Configs:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="73415-replacetext.png" style="width: 2482px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18656i17FCDACF7B962557/image-size/medium?v=v2&amp;amp;px=400" role="button" title="73415-replacetext.png" alt="73415-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Replacement Value as empty string&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="73414-replacement-value.png" style="width: 1988px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18657iF69948A9DE1CFC1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="73414-replacement-value.png" alt="73414-replacement-value.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Search Value&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;(,Minutes.*\n|CellID|=|"|LogicRNCID|CGI|CellIndex|GCELL:LABEL)&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Replacement Value&lt;/P&gt;&lt;PRE&gt;Empty string set //we are searching for all the values above and replacing them with empty string&lt;/PRE&gt;&lt;P&gt;Replacement Strategy&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Regex Replace //interprets search value as regex and replaces matched value with replacement values&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Evaluation Mode&lt;/P&gt;&lt;PRE&gt;Line-by-Line //Run the 'Replacement Strategy' against each line separately (Line-by-Line) &lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer addressed your question, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 07:54:49 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T07:54:49Z</dc:date>
    <item>
      <title>NiFi how to delete different strings through replacetext in CSV</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-delete-different-strings-through-replacetext-in/m-p/188334#M150430</link>
      <description>&lt;P&gt;I am using NiFi replacetext processor to delete some strings in csv file but somehow its not working.&lt;/P&gt;&lt;P&gt;Below is the search string: &lt;/P&gt;&lt;P&gt;(,Minutes.*\n|CellID|=|"|LogicRNCID|CGI|CellIndex|GCELL:LABEL)&lt;/P&gt;&lt;P&gt;below is snapshot:&lt;/P&gt;&lt;P&gt;Can anyone tell how to mention multiple string in search box and how to mention delete these in replacement value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="72707-capture1.png" style="width: 766px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18658i2FCF51FD6EF36046/image-size/medium?v=v2&amp;amp;px=400" role="button" title="72707-capture1.png" alt="72707-capture1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:54:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-delete-different-strings-through-replacetext-in/m-p/188334#M150430</guid>
      <dc:creator>naeem_khan</dc:creator>
      <dc:date>2019-08-18T07:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi how to delete different strings through replacetext in CSV</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-delete-different-strings-through-replacetext-in/m-p/188335#M150431</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/65208/naeemkhan.html" nodeid="65208" target="_blank"&gt;@Naeem Ullah Khan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Change the replace text &lt;STRONG&gt;Replacement Strategy to Regex Replace&lt;/STRONG&gt; because you are using "|"(or operator) to search for all the possible instances in your input csv file by using Evaluation mode as Line-By-Line and change the &lt;STRONG&gt;Replacement value &lt;/STRONG&gt;property to &lt;STRONG&gt;empty string&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;.&lt;BR /&gt;&lt;STRONG&gt;Always Replace &lt;/STRONG&gt;will replace the entire flowfile contents based on Evaluation mode property &amp;lt;value&amp;gt; without searching for any value.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ReplaceText Configs:-&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="73415-replacetext.png" style="width: 2482px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18656i17FCDACF7B962557/image-size/medium?v=v2&amp;amp;px=400" role="button" title="73415-replacetext.png" alt="73415-replacetext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Replacement Value as empty string&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="73414-replacement-value.png" style="width: 1988px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18657iF69948A9DE1CFC1A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="73414-replacement-value.png" alt="73414-replacement-value.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Search Value&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;(,Minutes.*\n|CellID|=|"|LogicRNCID|CGI|CellIndex|GCELL:LABEL)&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Replacement Value&lt;/P&gt;&lt;PRE&gt;Empty string set //we are searching for all the values above and replacing them with empty string&lt;/PRE&gt;&lt;P&gt;Replacement Strategy&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Regex Replace //interprets search value as regex and replaces matched value with replacement values&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Evaluation Mode&lt;/P&gt;&lt;PRE&gt;Line-by-Line //Run the 'Replacement Strategy' against each line separately (Line-by-Line) &lt;/PRE&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;If the Answer addressed your question, &lt;STRONG&gt;Click on Accept button below to accept the answer&lt;/STRONG&gt;, That would be great help to Community users to find solution quickly for these kind of issues.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 07:54:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-delete-different-strings-through-replacetext-in/m-p/188335#M150431</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T07:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: NiFi how to delete different strings through replacetext in CSV</title>
      <link>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-delete-different-strings-through-replacetext-in/m-p/188336#M150432</link>
      <description>&lt;P&gt;Thanks it worked perfectly !!&lt;/P&gt;</description>
      <pubDate>Wed, 09 May 2018 19:27:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/NiFi-how-to-delete-different-strings-through-replacetext-in/m-p/188336#M150432</guid>
      <dc:creator>naeem_khan</dc:creator>
      <dc:date>2018-05-09T19:27:15Z</dc:date>
    </item>
  </channel>
</rss>

