<?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: [resolved] How to extract substrings according to regex pattern in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325687#M95261</link>
    <description>thanks,&lt;BR /&gt;custom code sounds like a good option. Ill give it a try..&lt;BR /&gt;/wave&lt;BR /&gt;dexter</description>
    <pubDate>Sun, 21 Mar 2010 21:12:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-21T21:12:25Z</dc:date>
    <item>
      <title>[resolved] How to extract substrings according to regex pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325683#M95257</link>
      <description>Hi, 
&lt;BR /&gt;i am new to Talend, and I trouble my mind how to perform Regex string manipulations in tMap. 
&lt;BR /&gt;Situation is: I have a column that has some date information embedded in text like this: 
&lt;BR /&gt;"AC/DC tickets for 20/12/2010" 
&lt;BR /&gt;Here i want to extract the date. My first approach was to utilise tExtraxctRegExFields, but since "cylces" in data flow are not supportet i dont see a way to rejoin this column with the rest of the dataset once it is split up. 
&lt;BR /&gt;I found a regex pattern 
&lt;BR /&gt;"({2}/{2}/{4})" 
&lt;BR /&gt;identifying the date, but here is my question: What is the correct java statement / code i have to create in tMap expression builder for this column? I tried Pattern.compile() but could not find a valid and working construction. 
&lt;BR /&gt;The source column holds the whole string, destination column should be stripped down to the date as a substring according to the regex pattern. 
&lt;BR /&gt;I use TOS 4.0. 
&lt;BR /&gt;Any help is appreciated. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;dexter</description>
      <pubDate>Sat, 16 Nov 2024 13:29:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325683#M95257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to extract substrings according to regex pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325684#M95258</link>
      <description>Hi,
&lt;BR /&gt;You can use the tExtractRegexFields component with this pattern : "^(.+)({2})/({2})/({4})$"
&lt;BR /&gt;On your output shema you have just to declare 4 columns : 
&lt;BR /&gt;- text
&lt;BR /&gt;- day
&lt;BR /&gt;- month
&lt;BR /&gt;- year
&lt;BR /&gt;And that's all.</description>
      <pubDate>Sun, 21 Mar 2010 16:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325684#M95258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-21T16:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to extract substrings according to regex pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325685#M95259</link>
      <description>Hi eguerin, 
&lt;BR /&gt;thanks for the quick reply and the improved regex 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;tExtractRegexFields isnt the best choice for me here, since it can only split up one column at a time as i see, and i have more than 1 column that needs some string cleansing in the data flow. 
&lt;BR /&gt;I have figured out that there are posts dealing with similar problems: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCr9ECAS" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Using-TMap-to-parse-complex-string/td-p/113699&lt;/A&gt; 
&lt;BR /&gt;It suggests RegEx String manipulations can be done in tMap which would be very elegant. But how exactly is the java statement to extract a substring from a given input string using a defined regex pattern? Should i write into code directly or can i implement it in the tmap expression builder? 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;dexter</description>
      <pubDate>Sun, 21 Mar 2010 17:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325685#M95259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-21T17:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to extract substrings according to regex pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325686#M95260</link>
      <description>Ok, you can do this with a routine (into the menu Code &amp;gt; Routines). 
&lt;BR /&gt;You have to create a new routine and develop your code in Java. 
&lt;BR /&gt;After this, you're able to reuse your routine into de expression builder (into the tMap) like this : 
&lt;BR /&gt;routines.yourRoutineName.yourMethodName(param1, paramx) 
&lt;BR /&gt;It's very easy to create a new routine.</description>
      <pubDate>Sun, 21 Mar 2010 17:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325686#M95260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-21T17:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to extract substrings according to regex pattern in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325687#M95261</link>
      <description>thanks,&lt;BR /&gt;custom code sounds like a good option. Ill give it a try..&lt;BR /&gt;/wave&lt;BR /&gt;dexter</description>
      <pubDate>Sun, 21 Mar 2010 21:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-extract-substrings-according-to-regex-pattern-in/m-p/2325687#M95261</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-21T21:12:25Z</dc:date>
    </item>
  </channel>
</rss>

