<?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: [resolved] Replace multiple strings altogether in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Replace-multiple-strings-altogether/m-p/2232299#M22306</link>
    <description>Hi,&lt;BR /&gt;In tMap (or tJavaRow), use replaceAll with according regex, something like:&lt;BR /&gt;&lt;PRE&gt;row1.Information.replaceAll("^.*Refer.*$", "Resident Referal").replaceAll("^.*Return.*$", "Return Visitor")&lt;/PRE&gt;&lt;BR /&gt;Check the syntax but that's the idea.&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
    <pubDate>Thu, 23 Feb 2017 07:54:46 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2017-02-23T07:54:46Z</dc:date>
    <item>
      <title>[resolved] Replace multiple strings altogether</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Replace-multiple-strings-altogether/m-p/2232298#M22305</link>
      <description>I have this situation where I have to replace multiple strings with a single string value. 
&lt;BR /&gt; 
&lt;PRE&gt;Information.replace("", "Resident Referral").&lt;BR /&gt;replace("", "Return Visitor");&lt;BR /&gt;&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;Referral                 &lt;BR /&gt;Resident Referral          &lt;BR /&gt;Resident Referrral  -------------- Replace all three with Resident Referral&lt;BR /&gt;Return visitor&lt;BR /&gt;Return Visitor&lt;BR /&gt;Return Vistitor&lt;BR /&gt;Return Vistor    ----------------- Replace all four with Return Visitor&lt;/PRE&gt; 
&lt;BR /&gt;Replace the string values where 
&lt;B&gt;Refer&lt;/B&gt; is common with Resident Referral and replace the string values where 
&lt;B&gt;Return&lt;/B&gt; is common with Return Visitor. 
&lt;BR /&gt;How can I get this done?</description>
      <pubDate>Wed, 22 Feb 2017 19:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Replace-multiple-strings-altogether/m-p/2232298#M22305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-22T19:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Replace multiple strings altogether</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Replace-multiple-strings-altogether/m-p/2232299#M22306</link>
      <description>Hi,&lt;BR /&gt;In tMap (or tJavaRow), use replaceAll with according regex, something like:&lt;BR /&gt;&lt;PRE&gt;row1.Information.replaceAll("^.*Refer.*$", "Resident Referal").replaceAll("^.*Return.*$", "Return Visitor")&lt;/PRE&gt;&lt;BR /&gt;Check the syntax but that's the idea.&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
      <pubDate>Thu, 23 Feb 2017 07:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Replace-multiple-strings-altogether/m-p/2232299#M22306</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-02-23T07:54:46Z</dc:date>
    </item>
  </channel>
</rss>

