<?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: Read file.dat with tfileinputregex in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216353#M12401</link>
    <description>&lt;P&gt;I try to be clear&lt;BR /&gt;The file.dat contains values from several sensors. I can distinguish the data of a sensor by the LB. When there is LB, it means a new sensor&lt;/P&gt; 
&lt;P&gt;I need to create 3 fields (name, value, date) to recover the fields of the sensors&lt;BR /&gt;-Name (which is the name of the sensor) is in the line that contains LB&lt;BR /&gt;&amp;nbsp;-value,date begen starts from the third line until the start of a new sensor (an anothor line with LB)&lt;/P&gt; 
&lt;P&gt;Knowing for value I can find negative values or "?" or simple value&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the expected result:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t.PNG" style="width: 620px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv41.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150946i13DA7D45C64E7A5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv41.png" alt="0683p000009Lv41.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;My need is to create a pattern with regex to create this fields.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2017 22:37:50 GMT</pubDate>
    <dc:creator>INESBK</dc:creator>
    <dc:date>2017-05-24T22:37:50Z</dc:date>
    <item>
      <title>Read file.dat with tfileinputregex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216351#M12399</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I would like to read file.dat with tfileInputRegex.&lt;/P&gt; 
&lt;P&gt;Here is a screenshot of the file:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 734px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LumH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141661i62421AD4A713DA2C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LumH.png" alt="0683p000009LumH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;So,I need to distinguish the parts of the file by the beginning of the word "LB" because&amp;nbsp;each time there is an LB it is new data to extract and i need to&amp;nbsp;retrieve three fields that are framed in red.&lt;/P&gt; 
&lt;P&gt;I tried these exprssions but I still get an error&lt;/P&gt; 
&lt;P&gt;"^LB"+&lt;BR /&gt;"([A-Z]\\.*)"+&lt;BR /&gt;"^([0-9]{8}T[0-9]{6}\\.[0-9]{3}Z)"+&lt;BR /&gt;"([0-9]*\\.[0-9]*)|(^-[0-9]*\\.[0-9]*)|[\\?]"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&lt;/P&gt; 
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 16:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216351#M12399</guid>
      <dc:creator>INESBK</dc:creator>
      <dc:date>2017-05-23T16:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Read file.dat with tfileinputregex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216352#M12400</link>
      <description>Your explaination is not very clear as you speak about 3 fields circled in red but there only 1 for lines starting with LB. Also, you don't say anything about other fields also circled in red.&lt;BR /&gt;I suggest you to give us the expected result based on this sample.</description>
      <pubDate>Wed, 24 May 2017 20:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216352#M12400</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-24T20:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read file.dat with tfileinputregex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216353#M12401</link>
      <description>&lt;P&gt;I try to be clear&lt;BR /&gt;The file.dat contains values from several sensors. I can distinguish the data of a sensor by the LB. When there is LB, it means a new sensor&lt;/P&gt; 
&lt;P&gt;I need to create 3 fields (name, value, date) to recover the fields of the sensors&lt;BR /&gt;-Name (which is the name of the sensor) is in the line that contains LB&lt;BR /&gt;&amp;nbsp;-value,date begen starts from the third line until the start of a new sensor (an anothor line with LB)&lt;/P&gt; 
&lt;P&gt;Knowing for value I can find negative values or "?" or simple value&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the expected result:&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="t.PNG" style="width: 620px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv41.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150946i13DA7D45C64E7A5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv41.png" alt="0683p000009Lv41.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;My need is to create a pattern with regex to create this fields.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 22:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216353#M12401</guid>
      <dc:creator>INESBK</dc:creator>
      <dc:date>2017-05-24T22:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read file.dat with tfileinputregex</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216354#M12402</link>
      <description>&lt;P&gt;you can achive this using tfileinputdelimited also. Only in column0 you have to&amp;nbsp; put LB externally.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2nd_step_delimited.PNG" style="width: 929px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lylm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153104i439A315A272ED7B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lylm.png" alt="0683p000009Lylm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3rd_step_delimited_file.PNG" style="width: 933px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lyj2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135669i653412B47E76ABE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lyj2.png" alt="0683p000009Lyj2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Jun 2018 13:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-file-dat-with-tfileinputregex/m-p/2216354#M12402</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-03T13:21:39Z</dc:date>
    </item>
  </channel>
</rss>

