<?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 replaceAll - Not working for numbers? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/replaceAll-Not-working-for-numbers/m-p/2196626#M696</link>
    <description>&lt;P&gt;I am trying to remove numbers from the myNumbers column which is a String but I am getting the error "&lt;FONT color="#FF0000"&gt;java.lang.NullPointerException&lt;/FONT&gt;".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My tMap looks like this:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;row3.myNumbers.replaceAll("[0-9]","").trim();&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My sample file:&lt;/P&gt; 
&lt;P&gt;myLetters,myNumbers&lt;BR /&gt;abc,A123&lt;BR /&gt;def,B456&lt;BR /&gt;hij,C789&lt;BR /&gt;klm,D010&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Any ideas?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Apr 2020 04:24:04 GMT</pubDate>
    <dc:creator>talendtester</dc:creator>
    <dc:date>2020-04-10T04:24:04Z</dc:date>
    <item>
      <title>replaceAll - Not working for numbers?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replaceAll-Not-working-for-numbers/m-p/2196626#M696</link>
      <description>&lt;P&gt;I am trying to remove numbers from the myNumbers column which is a String but I am getting the error "&lt;FONT color="#FF0000"&gt;java.lang.NullPointerException&lt;/FONT&gt;".&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My tMap looks like this:&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;row3.myNumbers.replaceAll("[0-9]","").trim();&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My sample file:&lt;/P&gt; 
&lt;P&gt;myLetters,myNumbers&lt;BR /&gt;abc,A123&lt;BR /&gt;def,B456&lt;BR /&gt;hij,C789&lt;BR /&gt;klm,D010&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Any ideas?&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 04:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replaceAll-Not-working-for-numbers/m-p/2196626#M696</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2020-04-10T04:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: replaceAll - Not working for numbers?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/replaceAll-Not-working-for-numbers/m-p/2196627#M697</link>
      <description>Need to check if there exist null value in this column, you can change the expression to: 
&lt;BR /&gt;row3.myNumbers==null?null:row3.myNumbers .replaceAll("[0-9]","").trim() 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 10 Apr 2020 04:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/replaceAll-Not-working-for-numbers/m-p/2196627#M697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-10T04:37:54Z</dc:date>
    </item>
  </channel>
</rss>

