<?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 Remove the first zero from a string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Remove-the-first-zero-from-a-string/m-p/2330372#M99457</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't process a string the way I want. Here is an illustration of what I want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEddBAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152081i633DB9538F9DBF13/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEddBAAT.png" alt="0695b00000YEddBAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried var.rep_finesspre.replaceFirst("^0*", "") in my tMap (or replaceAll). I also tried tReplace with "0_" and replace with "". But the result is not what I expect, I want to remove the first zero from a string when there are numbers behind it. My variable is of type string&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:24:38 GMT</pubDate>
    <dc:creator>stephbzr</dc:creator>
    <dc:date>2024-11-15T22:24:38Z</dc:date>
    <item>
      <title>Remove the first zero from a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Remove-the-first-zero-from-a-string/m-p/2330372#M99457</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't process a string the way I want. Here is an illustration of what I want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEddBAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152081i633DB9538F9DBF13/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEddBAAT.png" alt="0695b00000YEddBAAT.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried var.rep_finesspre.replaceFirst("^0*", "") in my tMap (or replaceAll). I also tried tReplace with "0_" and replace with "". But the result is not what I expect, I want to remove the first zero from a string when there are numbers behind it. My variable is of type string&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:24:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Remove-the-first-zero-from-a-string/m-p/2330372#M99457</guid>
      <dc:creator>stephbzr</dc:creator>
      <dc:date>2024-11-15T22:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove the first zero from a string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Remove-the-first-zero-from-a-string/m-p/2330373#M99458</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;With your use case, you'd better get your String length firstly and then remove the first zero from a string.&lt;/P&gt;&lt;P&gt;Please have a look at my screenshots for details. Hope it helps&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEm90AAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145918iB695534D0FDE712D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEm90AAD.png" alt="0695b00000YEm90AAD.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000YEm95AAD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156216i3F2F66E8BA590559/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000YEm95AAD.png" alt="0695b00000YEm95AAD.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 01 Nov 2022 07:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Remove-the-first-zero-from-a-string/m-p/2330373#M99458</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-01T07:26:02Z</dc:date>
    </item>
  </channel>
</rss>

