<?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: regex for replace/substr expression in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243381#M29895</link>
    <description>Hi Lino,&lt;BR /&gt;tExtractRegexFields does 2 things, 1st it parses the string in given format and if it matches the format it passes the data to the next component otherwise it rejects the data(only particular format will pass through) and 2nd it splits the matching data in multiple fileds as per the given rule.&lt;BR /&gt;Rule : "(*-*-*-*-*-*)-(*)-(*-*.*)" simply says that any string which is having - seperator and contains alphabets in 1, 2, 3, 4, 10th position and numeric values in 5 ,6 ,7 ,8 ,9th position.&lt;BR /&gt;and those brackets tells that the string should split into three section where 2nd is string represents your REFERENCE column. So if field1 contains your string then after split there will be 4 fields field1 plus 3 splitted fileds. However to contain all split values we need to define 3 columns in tExtractRegexFields metadata.&lt;BR /&gt;Hope now you are clear on how to use tExtractRegexFields.&lt;BR /&gt;--&lt;BR /&gt;Regards,&lt;BR /&gt;Vinod</description>
    <pubDate>Tue, 14 Aug 2012 07:32:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-14T07:32:07Z</dc:date>
    <item>
      <title>regex for replace/substr expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243378#M29892</link>
      <description>Hi all,
&lt;BR /&gt;I have an expression with this form
&lt;BR /&gt;SYS-Sedik-HKM-ES-20120106-140508-7891256-20120103-100624.csv
&lt;BR /&gt;(3 caracters+"-"+5 char+"-" + 3 char +"-"+ 2 char + "-"+ date(YYYYMMDD)+"-"+date(HHMMSS)+REFERENCE+date(YYYYMMDD)+"-"+date(HHMMSS)+".csv"
&lt;BR /&gt;I'm trying to get the REFERENCE : (in this exmeple : "7891256".)
&lt;BR /&gt;How doing that using regex expression ? 
&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 13 Aug 2012 10:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243378#M29892</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-08-13T10:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: regex for replace/substr expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243379#M29893</link>
      <description>You can use following expression. 
&lt;BR /&gt;"(*-*-*-*-*-*)-(*)-(*-*.*)" 
&lt;BR /&gt;Make sure you add 3 more columns in your tExtractRegexFields middle column will carry your REFERENCE. 
&lt;BR /&gt;-- 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Vinod</description>
      <pubDate>Mon, 13 Aug 2012 11:22:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243379#M29893</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-13T11:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: regex for replace/substr expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243380#M29894</link>
      <description>Thanks vinod_talend,
&lt;BR /&gt;I'm not sure I understand, could you please provide me more details. thanks</description>
      <pubDate>Mon, 13 Aug 2012 16:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243380#M29894</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-08-13T16:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: regex for replace/substr expression</title>
      <link>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243381#M29895</link>
      <description>Hi Lino,&lt;BR /&gt;tExtractRegexFields does 2 things, 1st it parses the string in given format and if it matches the format it passes the data to the next component otherwise it rejects the data(only particular format will pass through) and 2nd it splits the matching data in multiple fileds as per the given rule.&lt;BR /&gt;Rule : "(*-*-*-*-*-*)-(*)-(*-*.*)" simply says that any string which is having - seperator and contains alphabets in 1, 2, 3, 4, 10th position and numeric values in 5 ,6 ,7 ,8 ,9th position.&lt;BR /&gt;and those brackets tells that the string should split into three section where 2nd is string represents your REFERENCE column. So if field1 contains your string then after split there will be 4 fields field1 plus 3 splitted fileds. However to contain all split values we need to define 3 columns in tExtractRegexFields metadata.&lt;BR /&gt;Hope now you are clear on how to use tExtractRegexFields.&lt;BR /&gt;--&lt;BR /&gt;Regards,&lt;BR /&gt;Vinod</description>
      <pubDate>Tue, 14 Aug 2012 07:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/regex-for-replace-substr-expression/m-p/2243381#M29895</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-14T07:32:07Z</dc:date>
    </item>
  </channel>
</rss>

