<?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 Regex to replace empty curl braces in nifi in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Regex-to-replace-empty-curl-braces-in-nifi/m-p/341604#M233559</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement where there are some empty curl braces in my JSON output which needs to be removed and replaced with empty string. The regex seems to work fine to find the braces when tested outside.&lt;/P&gt;&lt;P&gt;Sample can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/AtTPv1/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/AtTPv1/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use this regex in nifi using replaceText, but it's not doing the replace. Below is my config for replaceText.&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="Screenshot from 2022-04-18 12-41-46.png" style="width: 761px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34192iB94661E50367BCF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-04-18 12-41-46.png" alt="Screenshot from 2022-04-18 12-41-46.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest if there are any options to change to make it work or any other better alternatives for working with JSON?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 07:34:56 GMT</pubDate>
    <dc:creator>r_rachuri</dc:creator>
    <dc:date>2022-04-18T07:34:56Z</dc:date>
    <item>
      <title>Regex to replace empty curl braces in nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Regex-to-replace-empty-curl-braces-in-nifi/m-p/341604#M233559</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement where there are some empty curl braces in my JSON output which needs to be removed and replaced with empty string. The regex seems to work fine to find the braces when tested outside.&lt;/P&gt;&lt;P&gt;Sample can be found here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://regex101.com/r/AtTPv1/1" target="_blank" rel="noopener"&gt;https://regex101.com/r/AtTPv1/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to use this regex in nifi using replaceText, but it's not doing the replace. Below is my config for replaceText.&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="Screenshot from 2022-04-18 12-41-46.png" style="width: 761px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34192iB94661E50367BCF2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2022-04-18 12-41-46.png" alt="Screenshot from 2022-04-18 12-41-46.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest if there are any options to change to make it work or any other better alternatives for working with JSON?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 07:34:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Regex-to-replace-empty-curl-braces-in-nifi/m-p/341604#M233559</guid>
      <dc:creator>r_rachuri</dc:creator>
      <dc:date>2022-04-18T07:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to replace empty curl braces in nifi</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Regex-to-replace-empty-curl-braces-in-nifi/m-p/341869#M233630</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/97359"&gt;@r_rachuri&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your expression works for me on NiFi 1.15.2. It's too complicated, though, and it still leaves a pair of curly brackets behind.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using this one instead:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\{[ \n]*\}[ \n]*,?[ \n]*&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 07:20:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Regex-to-replace-empty-curl-braces-in-nifi/m-p/341869#M233630</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-04-21T07:20:44Z</dc:date>
    </item>
  </channel>
</rss>

