<?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 Re: replace whole string by matching part of it in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202872#M4401</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;Thanks a lot! Both work well and can use as solutions.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Sep 2018 10:43:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-19T10:43:09Z</dc:date>
    <item>
      <title>replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202866#M4395</link>
      <description>&lt;P&gt;Hi.&amp;nbsp;I have a set of strings like below.&lt;/P&gt; 
&lt;P&gt;"helloworldabc"&lt;/P&gt; 
&lt;P&gt;"o helloworld"&lt;/P&gt; 
&lt;P&gt;"helloworld+++++"&lt;/P&gt; 
&lt;P&gt;"helloworld + 3"&lt;/P&gt; 
&lt;P&gt;"helloworld10"&lt;/P&gt; 
&lt;P&gt;"polo-world"&lt;/P&gt; 
&lt;P&gt;"polo-world+"&lt;/P&gt; 
&lt;P&gt;"polo-world++++++"&lt;/P&gt; 
&lt;P&gt;"polo-world15"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to match all the strings that have substring "helloworld" and replace&amp;nbsp;the whole string by Hello-World without having the numbers, alphabets, symbols before and after. And&amp;nbsp;do the same by matching the strings that have "polo-world" and replace by "Polo-World" along with removing anything before and after polo-world. Can someone suggest a way to do on treplace or tmap?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202866#M4395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T09:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202867#M4396</link>
      <description>on tmap. 
&lt;BR /&gt;on the right side you can push … button on filter or on expression. 
&lt;BR /&gt;on Expression builder select String Handling function ereplace 
&lt;BR /&gt;it's what you are looking for. 
&lt;BR /&gt;StringHandling.EREPLACE(row1.col1,"helloworld","Hello-World") 
&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Sep 2018 09:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202867#M4396</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-09-19T09:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202868#M4397</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;, it doesn't work. I need to remove anything before and after the words "helloworld"&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202868#M4397</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T10:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202869#M4398</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKpMAAW"&gt;@fdenis&lt;/A&gt;, I have to replace the whole string now. EReplace changed only "helloworld" to "Hello-World" but the strings "helloworld++++", "helloworld10", "ohelloworld" etc didn't lose their "+++", "10" and "o"&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202869#M4398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T10:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202870#M4399</link>
      <description>&lt;P&gt;You need to use indexOf() and if the index is greater than -1, replace the whole String. So something like this....&lt;/P&gt;&lt;PRE&gt;row1.myColumn.indexOf("Hello World")&amp;gt;-1 ? "Hello World" : row1.myColumn&lt;/PRE&gt;&lt;P&gt;The above can be used practically anywhere and says "If Hello World appears anywhere in my column, set the value I am returning to "Hello World", otherwise return the value that came in the column"&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202870#M4399</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T10:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202871#M4400</link>
      <description>&lt;P&gt;You may also use a regex to cover the whole case:&lt;/P&gt;&lt;PRE&gt;(row1.myColumn.replaceAll("^.*helloword.*$", "Hello World")).replaceAll("^.*polo-world.*$", "Polo-World")&lt;/PRE&gt;&lt;P&gt;Should work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202871#M4400</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-09-19T10:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202872#M4401</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;Thanks a lot! Both work well and can use as solutions.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202872#M4401</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T10:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: replace whole string by matching part of it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202873#M4402</link>
      <description>You're welcome</description>
      <pubDate>Wed, 19 Sep 2018 10:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replace-whole-string-by-matching-part-of-it/m-p/2202873#M4402</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-09-19T10:45:47Z</dc:date>
    </item>
  </channel>
</rss>

