<?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: Dynamic Regex in tExtractRegexFields in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372995#M135767</link>
    <description>hi&lt;BR /&gt;&lt;BR /&gt;you right, tJavaRow use the syntax input_row &amp;amp; output_row ... but in other component use nameofRow.nameofField (ex : row1.RegexPattern)&lt;BR /&gt;&lt;BR /&gt;hope it helps&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
    <pubDate>Thu, 30 Jul 2015 08:56:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-07-30T08:56:06Z</dc:date>
    <item>
      <title>Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372994#M135766</link>
      <description>&lt;P&gt;My job is &lt;BR /&gt;tJavaRow ------&amp;gt;&amp;nbsp; tExtractRegexFields&lt;BR /&gt;I check some condition in tJavaRow and set the regex value to &lt;STRONG&gt;output_row.RegexPattern&lt;/STRONG&gt; and try to access it in tExtractRegexFields in Regex property like &lt;STRONG&gt;input_row.RegexPattern&lt;/STRONG&gt;, but I am getting null value. I don't understand why regex value is not getting set. In short, I want Regex property of tExtractRegexFields dynamic.&lt;BR /&gt;Please help me on this.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2015 11:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372994#M135766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-29T11:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372995#M135767</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;you right, tJavaRow use the syntax input_row &amp;amp; output_row ... but in other component use nameofRow.nameofField (ex : row1.RegexPattern)&lt;BR /&gt;&lt;BR /&gt;hope it helps&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Thu, 30 Jul 2015 08:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372995#M135767</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-30T08:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372996#M135768</link>
      <description>Thanks.&lt;BR /&gt;I tried it but no luck. Actually If I put static regex pattern it works, but when I try dynamic regex then it fails. Even I tried to set regex in global map at start and tried to use it in regex field but it didn't work.</description>
      <pubDate>Fri, 31 Jul 2015 06:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372996#M135768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-31T06:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372997#M135769</link>
      <description>the regex doesn't match what you expect or you've an error?&lt;BR /&gt;what's one of your regex are trying to play ?&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Fri, 31 Jul 2015 14:56:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372997#M135769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-07-31T14:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372998#M135770</link>
      <description>When I put the hard coded regex pattern in Regex field of tExtractRegexField then it works fine and same regex pattern&lt;BR /&gt;When I set in context or global map and try to get the regex pattern in tExtractRegexField ((String)globalMap.get("regex_pattern")) then I get null pointer exception.</description>
      <pubDate>Wed, 05 Aug 2015 06:32:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372998#M135770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T06:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372999#M135771</link>
      <description>if you compare (String)globalMap.get("regex_pattern") &amp;amp; hard coded pattern, are they the same ? (use a System.out.println() to log value from globalmap).&lt;BR /&gt;I suspect some backslash added or those kind of things that escape special caracters.&lt;BR /&gt;&lt;BR /&gt;Can you post your regex &amp;amp; a sample of your data input ?&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Wed, 05 Aug 2015 08:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2372999#M135771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T08:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373000#M135772</link>
      <description>Yes I ensured that both patterns are same</description>
      <pubDate>Wed, 05 Aug 2015 12:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373000#M135772</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T12:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373001#M135773</link>
      <description>so the only reason is that your var (String)globalMap.get("regex_pattern") = null when you're trying to use it.</description>
      <pubDate>Wed, 05 Aug 2015 14:27:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373001#M135773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373002#M135774</link>
      <description>Yes. My job flow is :-
&lt;BR /&gt;tFileInputSendMail&amp;nbsp; -&amp;gt;&amp;nbsp; tJava -&amp;gt; tExtractRegexField
&lt;BR /&gt;In tJava, I set the regex pattern to variable (MyRegex.regex = "regex pattern") and try to use it in tExtractRegexField (MyRegex.regex), I get it null.
&lt;BR /&gt;When I move tJava before tFIleInputSendMail then it works fine. As per code, I can see regex compilation happens before value is set to variable.</description>
      <pubDate>Wed, 05 Aug 2015 14:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373002#M135774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-05T14:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Regex in tExtractRegexFields</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373003#M135775</link>
      <description>tjava cannot manage flow (MyRegex.regex ) =&amp;gt; use tjavarow for that or initialize a global var : globalMap.put("regex',"regex pattern")&lt;BR /&gt;&amp;amp; use it with (String)globalMap.get("regex")</description>
      <pubDate>Thu, 06 Aug 2015 09:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-Regex-in-tExtractRegexFields/m-p/2373003#M135775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-06T09:33:49Z</dc:date>
    </item>
  </channel>
</rss>

