<?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>topic Using regular expressions with Redshift in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-regular-expressions-with-Redshift/m-p/2363361#M127254</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using a tRedshiftRow component to update a Redshift table. Within the update statement , I am using the Redshift regex_replace function to remove multiple consecutive whitespaces. If I execute the update statement outside of Talend, via a Redshift client, the update statement works as it should be. However, when being executed during via Talend, multiple whitespaces are not being replaced, but words containing 'ss' are being replaced with a whitespace.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The regex expression used is: regex_replace(word, '\\s{2,}',' ')&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried removing one of the back-slashes but it gave an error.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any hints on how to solve this by keeping the query intact?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:55:36 GMT</pubDate>
    <dc:creator>mat007g</dc:creator>
    <dc:date>2024-11-16T07:55:36Z</dc:date>
    <item>
      <title>Using regular expressions with Redshift</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-regular-expressions-with-Redshift/m-p/2363361#M127254</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using a tRedshiftRow component to update a Redshift table. Within the update statement , I am using the Redshift regex_replace function to remove multiple consecutive whitespaces. If I execute the update statement outside of Talend, via a Redshift client, the update statement works as it should be. However, when being executed during via Talend, multiple whitespaces are not being replaced, but words containing 'ss' are being replaced with a whitespace.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The regex expression used is: regex_replace(word, '\\s{2,}',' ')&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried removing one of the back-slashes but it gave an error.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any hints on how to solve this by keeping the query intact?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-regular-expressions-with-Redshift/m-p/2363361#M127254</guid>
      <dc:creator>mat007g</dc:creator>
      <dc:date>2024-11-16T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using regular expressions with Redshift</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-regular-expressions-with-Redshift/m-p/2363362#M127255</link>
      <description>&lt;P&gt;if You use this function in SQL code, like "select &lt;SPAN&gt;regex_replace(word, '\\s{2,}',' ') from ...&lt;/SPAN&gt;", java look for \\ as for \&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so You need use -&amp;nbsp;&lt;SPAN&gt;regex_replace(word, '\\\\s{2,}',' ')&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 12:55:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-regular-expressions-with-Redshift/m-p/2363362#M127255</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-07-20T12:55:54Z</dc:date>
    </item>
  </channel>
</rss>

