<?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 java routines to replace regex in a string? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/java-routines-to-replace-regex-in-a-string/m-p/2245162#M31090</link>
    <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;is it possible to create a java routines which can replace regex instead of using the tReplace component?&lt;BR /&gt;Example: There is a table which contains product column and product_description column.&lt;/P&gt;&lt;P&gt;This description also includes the words "do not offer" in different kinds like:&lt;BR /&gt;DO NOT OFFER, Do Not Offer, Do NOT Offer, don't offer, DON'T OFFER and some other writings.&lt;/P&gt;&lt;P&gt;Now those words have to replace by an empty space.&lt;/P&gt;&lt;P&gt;Is there an easy way to replace all different writings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any information.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jul 2019 11:50:59 GMT</pubDate>
    <dc:creator>pawe84</dc:creator>
    <dc:date>2019-07-23T11:50:59Z</dc:date>
    <item>
      <title>java routines to replace regex in a string?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-routines-to-replace-regex-in-a-string/m-p/2245162#M31090</link>
      <description>&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;is it possible to create a java routines which can replace regex instead of using the tReplace component?&lt;BR /&gt;Example: There is a table which contains product column and product_description column.&lt;/P&gt;&lt;P&gt;This description also includes the words "do not offer" in different kinds like:&lt;BR /&gt;DO NOT OFFER, Do Not Offer, Do NOT Offer, don't offer, DON'T OFFER and some other writings.&lt;/P&gt;&lt;P&gt;Now those words have to replace by an empty space.&lt;/P&gt;&lt;P&gt;Is there an easy way to replace all different writings?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any information.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 11:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-routines-to-replace-regex-in-a-string/m-p/2245162#M31090</guid>
      <dc:creator>pawe84</dc:creator>
      <dc:date>2019-07-23T11:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: java routines to replace regex in a string?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-routines-to-replace-regex-in-a-string/m-p/2245163#M31091</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;"Easy way", not sure but you can of course create a routine with a method that will remove all possible occurences of your list.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please note that you can easily make a regex case unsensitive by adding&amp;nbsp;"(?i)"&amp;nbsp;at the beginning.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For example this :&lt;/P&gt; 
&lt;PRE&gt;"nice product Do NoT OfFeR to client".replaceAll("(?i)do not offer","")&lt;/PRE&gt; 
&lt;P&gt;will return that :&lt;/P&gt; 
&lt;PRE&gt;nice product  to client&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Of course, it's not very clean &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; and you'll have to ajust every time you see a new variation...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 17:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-routines-to-replace-regex-in-a-string/m-p/2245163#M31091</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2019-07-23T17:29:08Z</dc:date>
    </item>
  </channel>
</rss>

