<?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 tMap extract customer number from string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-extract-customer-number-from-string/m-p/2255855#M38427</link>
    <description>Hi, 
&lt;BR /&gt;I have a source cvs report that looks like this: 
&lt;BR /&gt;JOHN DOE COMPANY (144333),2344,1233,1233 
&lt;BR /&gt;I had to extract the customer number between parentheses, so I did: 
&lt;BR /&gt;StringHandling.LEFT((StringHandling.RIGHT(row1._Sales,7)),6) directly on the tMap field to match the customer number and get the ID as a lookup. 
&lt;BR /&gt;Now I have brought in another region that has 2 more digits on the customer number, so my previous solutions doesn't work. I've spent a good 5 hours reading solutions, but can't seem to find a solution. I'm not that good with regex and I want to make sure that I get the extraction right. 
&lt;BR /&gt;Please help! 
&lt;BR /&gt;Thanks! 
&lt;BR /&gt;OA</description>
    <pubDate>Tue, 21 Jan 2014 21:21:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-21T21:21:29Z</dc:date>
    <item>
      <title>tMap extract customer number from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-extract-customer-number-from-string/m-p/2255855#M38427</link>
      <description>Hi, 
&lt;BR /&gt;I have a source cvs report that looks like this: 
&lt;BR /&gt;JOHN DOE COMPANY (144333),2344,1233,1233 
&lt;BR /&gt;I had to extract the customer number between parentheses, so I did: 
&lt;BR /&gt;StringHandling.LEFT((StringHandling.RIGHT(row1._Sales,7)),6) directly on the tMap field to match the customer number and get the ID as a lookup. 
&lt;BR /&gt;Now I have brought in another region that has 2 more digits on the customer number, so my previous solutions doesn't work. I've spent a good 5 hours reading solutions, but can't seem to find a solution. I'm not that good with regex and I want to make sure that I get the extraction right. 
&lt;BR /&gt;Please help! 
&lt;BR /&gt;Thanks! 
&lt;BR /&gt;OA</description>
      <pubDate>Tue, 21 Jan 2014 21:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-extract-customer-number-from-string/m-p/2255855#M38427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-21T21:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: tMap extract customer number from string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-extract-customer-number-from-string/m-p/2255856#M38428</link>
      <description>hello,&lt;BR /&gt;Try this&lt;BR /&gt;String foo = "JOHN DOE COMPANY (144333),2344,1233,1233";&lt;BR /&gt;foo.substring(foo.lastIndexOf("(")+1,foo.lastIndexOf(")"))</description>
      <pubDate>Wed, 22 Jan 2014 05:58:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-extract-customer-number-from-string/m-p/2255856#M38428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T05:58:17Z</dc:date>
    </item>
  </channel>
</rss>

