<?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: Using RegEx in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-RegEx-in-tMap/m-p/2249387#M33943</link>
    <description>From my understanding, you want to get the left part of row1.columname before ":". Right? 
&lt;BR /&gt;The simplest regex in this case is row1.columname.replaceAll(":.*$", "") 
&lt;BR /&gt;This method works for most cases as soon as you get the expression to represent what you want to remove. 
&lt;BR /&gt;String.split() may also be really usefull in many cases. 
&lt;BR /&gt;Home this helps.</description>
    <pubDate>Mon, 08 Oct 2018 22:07:57 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2018-10-08T22:07:57Z</dc:date>
    <item>
      <title>Using RegEx in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-RegEx-in-tMap/m-p/2249386#M33942</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using a tMap to read in some data, transform it and output a new file.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like to use a regular expression to parse the string in one of the columns.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;As an example, here is a raw input string:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Firstname Surname:Acme - 364315&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I would like to be able to apply a regex to the above string to return only&amp;nbsp;Firstname&lt;SPAN&gt;&amp;nbsp;Surname&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;My syntax is totally wrong, but I am looking for something along the lines of row1.columname.parse("[^:]*") to go into the expression for that particular column&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I understand there is a simple way to do this using the normal Java string manipulators to find the first instance of ":" and then get everything up to there.&amp;nbsp; But I want to be able to use regex because I have more complex constructs that I want to be able to use regex with. Ie being able to use RegEx is important.&amp;nbsp; Don't get hung up on the simplicity of my example above&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;What is the syntax I should be using please?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 21:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-RegEx-in-tMap/m-p/2249386#M33942</guid>
      <dc:creator>kdv</dc:creator>
      <dc:date>2018-10-08T21:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using RegEx in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-RegEx-in-tMap/m-p/2249387#M33943</link>
      <description>From my understanding, you want to get the left part of row1.columname before ":". Right? 
&lt;BR /&gt;The simplest regex in this case is row1.columname.replaceAll(":.*$", "") 
&lt;BR /&gt;This method works for most cases as soon as you get the expression to represent what you want to remove. 
&lt;BR /&gt;String.split() may also be really usefull in many cases. 
&lt;BR /&gt;Home this helps.</description>
      <pubDate>Mon, 08 Oct 2018 22:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-RegEx-in-tMap/m-p/2249387#M33943</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-10-08T22:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Using RegEx in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-RegEx-in-tMap/m-p/2249388#M33944</link>
      <description>&lt;P&gt;Thanks, that worked.&amp;nbsp; My regex wasn't working before.&amp;nbsp; But your solution does the trick.&amp;nbsp; Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Oct 2018 22:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-RegEx-in-tMap/m-p/2249388#M33944</guid>
      <dc:creator>kdv</dc:creator>
      <dc:date>2018-10-08T22:13:32Z</dc:date>
    </item>
  </channel>
</rss>

