<?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 ReplaceText how can i change dot to comma in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/317804#M227330</link>
    <description>&lt;P&gt;Hi Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know why but it has created 5 more columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Acbx_0-1623075327303.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31435i35C0BDA296175039/image-size/large?v=v2&amp;amp;px=999" role="button" title="Acbx_0-1623075327303.png" alt="Acbx_0-1623075327303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Jun 2021 14:16:12 GMT</pubDate>
    <dc:creator>Acbx</dc:creator>
    <dc:date>2021-06-07T14:16:12Z</dc:date>
    <item>
      <title>Nifi ReplaceText how can i change dot to comma</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/316729#M226882</link>
      <description>&lt;P&gt;I'm trying the processor ReplaceText to change all my dot to comma, but i can't&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really need some help here, please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my CSV file:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MONEY (header)&lt;/P&gt;&lt;P&gt;109.29&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MONEY (header)&lt;/P&gt;&lt;P&gt;109,28&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 21:52:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/316729#M226882</guid>
      <dc:creator>Acbx</dc:creator>
      <dc:date>2021-05-19T21:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi ReplaceText how can i change dot to comma</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/316837#M226915</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88666"&gt;@Acbx&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You should be able to easily do this based on your example easily with the ReplaceText processor configured as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1621545569148.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31241iF6DAD8675E7099B3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1621545569148.png" alt="MattWho_0-1621545569148.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you found this addressed your query, please take a moment to login and click accept on the solution.&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 21:20:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/316837#M226915</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-20T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi ReplaceText how can i change dot to comma</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/317804#M227330</link>
      <description>&lt;P&gt;Hi Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know why but it has created 5 more columns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Acbx_0-1623075327303.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31435i35C0BDA296175039/image-size/large?v=v2&amp;amp;px=999" role="button" title="Acbx_0-1623075327303.png" alt="Acbx_0-1623075327303.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 14:16:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/317804#M227330</guid>
      <dc:creator>Acbx</dc:creator>
      <dc:date>2021-06-07T14:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi ReplaceText how can i change dot to comma</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/317817#M227337</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88666"&gt;@Acbx&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It looks like your CSV uses commas as the field delimiter.&amp;nbsp; So the solution i provided parses the entire file line by line and changes all "." to ",".&amp;nbsp; So, I am guessing that you have other places within your CSV that also had ".", thus creating the additional 5 field columns.&lt;BR /&gt;&lt;BR /&gt;Are trying to create a new column for cents?&amp;nbsp; Is that why you are changing 109.29 tp 109,29?&lt;BR /&gt;If you are not looking for a new column, how will downstream system parse this edited CSV now that you added a new comma in there?&lt;BR /&gt;&lt;BR /&gt;You could write a complex Java regular expression in the Search Value to match only specifically on column number X (Money Column) and then use Replacement Strategy "&lt;SPAN&gt;Regex Replace" to edit it.&lt;BR /&gt;&lt;BR /&gt;Let's assume the "Money" Column was column number 5. And then wrap money once converted from 109.29 to 109,29 in quotes so it is not treated as two columns later on....&lt;BR /&gt;&lt;BR /&gt;Search Value:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;^(.*?),(.*?),(.*?),(.*?),(.*?),(.*?)$&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Replacement Value:&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$1,$2,$3,$4,"${'$5':replace(".",",")}",$6&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1623079977531.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31437i898342E4DD8B707F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1623079977531.png" alt="MattWho_0-1623079977531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So above would manipulate column 5 only and change 109.29 in to "109,29".&lt;BR /&gt;&lt;BR /&gt;Hope this helps you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jun 2021 15:34:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-ReplaceText-how-can-i-change-dot-to-comma/m-p/317817#M227337</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-06-07T15:34:38Z</dc:date>
    </item>
  </channel>
</rss>

