<?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 [resolved] Trying to use StringHandling.CHANGE to replace &amp;quot;*&amp;quot; with &amp;quot; &amp;quot;. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294058#M66971</link>
    <description>Hi, 
&lt;BR /&gt;I have a input row wich can contain "*", and I wan't to replace "*" with " " (e.g. "asd*asd" -&amp;gt; "asd asd"). I tried using this code in the output row expression in tMap: 
&lt;BR /&gt; 
&lt;PRE&gt;StringHandling.CHANGE(TABLE1.ROW,"*"," ")&lt;/PRE&gt; 
&lt;BR /&gt;But I get this error: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tMap_1&lt;BR /&gt;java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0&lt;BR /&gt;*&lt;BR /&gt;^&lt;BR /&gt;	at java.util.regex.Pattern.error(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.sequence(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.expr(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.compile(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.compile(Unknown Source)&lt;BR /&gt;	at java.lang.String.replaceAll(Unknown Source)&lt;BR /&gt;	at routines.StringHandling.CHANGE(StringHandling.java:87)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.tOracleInput_1Process(Preparar_Tablas.java:3490)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.runJobInTOS(Preparar_Tablas.java:17858)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.main(Preparar_Tablas.java:17726)&lt;/PRE&gt; 
&lt;BR /&gt;I also tried using: 
&lt;BR /&gt; 
&lt;PRE&gt;TABLE1.ROW.replace('*',' ')&lt;/PRE&gt; 
&lt;BR /&gt;But I get this error: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.tOracleInput_1Process(Preparar_Tablas.java:3490)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.runJobInTOS(Preparar_Tablas.java:17857)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.main(Preparar_Tablas.java:17725)&lt;/PRE&gt; 
&lt;BR /&gt;Sorry if this is a newbie question, thanks in advance, 
&lt;BR /&gt;Khor.</description>
    <pubDate>Sat, 16 Nov 2024 12:25:58 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:25:58Z</dc:date>
    <item>
      <title>[resolved] Trying to use StringHandling.CHANGE to replace "*" with " ".</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294058#M66971</link>
      <description>Hi, 
&lt;BR /&gt;I have a input row wich can contain "*", and I wan't to replace "*" with " " (e.g. "asd*asd" -&amp;gt; "asd asd"). I tried using this code in the output row expression in tMap: 
&lt;BR /&gt; 
&lt;PRE&gt;StringHandling.CHANGE(TABLE1.ROW,"*"," ")&lt;/PRE&gt; 
&lt;BR /&gt;But I get this error: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tMap_1&lt;BR /&gt;java.util.regex.PatternSyntaxException: Dangling meta character '*' near index 0&lt;BR /&gt;*&lt;BR /&gt;^&lt;BR /&gt;	at java.util.regex.Pattern.error(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.sequence(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.expr(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.compile(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.&amp;lt;init&amp;gt;(Unknown Source)&lt;BR /&gt;	at java.util.regex.Pattern.compile(Unknown Source)&lt;BR /&gt;	at java.lang.String.replaceAll(Unknown Source)&lt;BR /&gt;	at routines.StringHandling.CHANGE(StringHandling.java:87)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.tOracleInput_1Process(Preparar_Tablas.java:3490)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.runJobInTOS(Preparar_Tablas.java:17858)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.main(Preparar_Tablas.java:17726)&lt;/PRE&gt; 
&lt;BR /&gt;I also tried using: 
&lt;BR /&gt; 
&lt;PRE&gt;TABLE1.ROW.replace('*',' ')&lt;/PRE&gt; 
&lt;BR /&gt;But I get this error: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.tOracleInput_1Process(Preparar_Tablas.java:3490)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.runJobInTOS(Preparar_Tablas.java:17857)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.main(Preparar_Tablas.java:17725)&lt;/PRE&gt; 
&lt;BR /&gt;Sorry if this is a newbie question, thanks in advance, 
&lt;BR /&gt;Khor.</description>
      <pubDate>Sat, 16 Nov 2024 12:25:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294058#M66971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Trying to use StringHandling.CHANGE to replace "*" with " ".</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294059#M66972</link>
      <description>have you tried TABLE1.ROW.replaceAll("*"," ")&lt;BR /&gt;I think your replace problem was because you have single quotes.</description>
      <pubDate>Tue, 24 Jan 2012 11:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294059#M66972</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-01-24T11:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Trying to use StringHandling.CHANGE to replace "*" with " ".</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294060#M66973</link>
      <description>Hi janhess, thanks for your reply 
&lt;BR /&gt;I tried TABLE1.ROW.replaceALL("*"," ") and it throws an error too: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.tOracleInput_1Process(Preparar_Tablas.java:3490)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.runJobInTOS(Preparar_Tablas.java:17857)&lt;BR /&gt;	at modelo181.preparar_tablas_0_1.Preparar_Tablas.main(Preparar_Tablas.java:17725)&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jan 2012 08:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294060#M66973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-25T08:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Trying to use StringHandling.CHANGE to replace "*" with " ".</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294061#M66974</link>
      <description>Presumably you have a null value in table1.row. Try ! Relational.ISNULL(TABLE1.ROW1)?TABLE1.ROW.replaceALL("*"," "):""</description>
      <pubDate>Wed, 25 Jan 2012 09:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294061#M66974</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-01-25T09:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Trying to use StringHandling.CHANGE to replace "*" with " ".</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294062#M66975</link>
      <description>Hi janhess,
&lt;BR /&gt;You're right, there is null values coming from the lookup table and the java function can't work with them, that's why I was getting NullPointerException errors.
&lt;BR /&gt;Thank you,
&lt;BR /&gt;Khor.</description>
      <pubDate>Wed, 25 Jan 2012 09:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Trying-to-use-StringHandling-CHANGE-to-replace-quot/m-p/2294062#M66975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-25T09:17:38Z</dc:date>
    </item>
  </channel>
</rss>

