<?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 match new line doesnt work in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/regex-match-new-line-doesnt-work/m-p/2257594#M39645</link>
    <description>&lt;P&gt;awesome! thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 07:44:02 GMT</pubDate>
    <dc:creator>richie1985</dc:creator>
    <dc:date>2019-02-12T07:44:02Z</dc:date>
    <item>
      <title>regex match new line doesnt work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/regex-match-new-line-doesnt-work/m-p/2257592#M39643</link>
      <description>&lt;P&gt;hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;want to to match a line from a text file:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gtniUA8" style="width: 200px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M33Q.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141175iFCEEA2D3EC186D18/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M33Q.png" alt="0683p000009M33Q.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;in a tJavaRow:&lt;/P&gt; 
&lt;PRE&gt;output_row.line = input_row.line;
String regex = "\\d{7}\\n";
java.util.regex.Matcher m = java.util.regex.Pattern.compile(regex).matcher(input_row.line);
   if(m.find()){
      System.out.println(m.group(0).trim().substring(0,7));
   }&lt;/PRE&gt; 
&lt;P&gt;this "\\n" doestn match the "LF", what could i do?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 00:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/regex-match-new-line-doesnt-work/m-p/2257592#M39643</guid>
      <dc:creator>richie1985</dc:creator>
      <dc:date>2019-02-12T00:04:10Z</dc:date>
    </item>
    <item>
      <title>Re: regex match new line doesnt work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/regex-match-new-line-doesnt-work/m-p/2257593#M39644</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is because - if you (as usual) read file row by row, Talend already truncate this LF from the line (default line separator)&lt;/P&gt;&lt;P&gt;but if you test with tInputFileRow (don't forget to convert it to string) - regex will work&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 01:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/regex-match-new-line-doesnt-work/m-p/2257593#M39644</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-02-12T01:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: regex match new line doesnt work</title>
      <link>https://community.qlik.com/t5/Talend-Studio/regex-match-new-line-doesnt-work/m-p/2257594#M39645</link>
      <description>&lt;P&gt;awesome! thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 07:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/regex-match-new-line-doesnt-work/m-p/2257594#M39645</guid>
      <dc:creator>richie1985</dc:creator>
      <dc:date>2019-02-12T07:44:02Z</dc:date>
    </item>
  </channel>
</rss>

