<?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: Field Seperator - Multiple Spaces in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252914#M36414</link>
    <description>In case Perl users are reading this topic, here comes a difference between Java and Perl. In Perl tFileInputDelimited, you can set the "Field Separator" to :&lt;BR /&gt;&lt;PRE&gt;/ +/&lt;/PRE&gt;&lt;BR /&gt;(no quote)</description>
    <pubDate>Mon, 24 Nov 2008 12:57:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-11-24T12:57:07Z</dc:date>
    <item>
      <title>Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252908#M36408</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt;I have a record that has spaces as seperators, but unfortunately not just one space each time, any number of spaces. 
&lt;BR /&gt; 
&lt;BR /&gt;Example 
&lt;BR /&gt; 
&lt;BR /&gt;1 2 3 4 5 6 7 
&lt;BR /&gt; 
&lt;BR /&gt;Using " " as seperator does not work, so I either need a better seperator or to strip out any unrequired spaces before delimiting, the trouble here is that I still need a single space in order to delimit to stripping all spaces is no good. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards,</description>
      <pubDate>Sat, 16 Nov 2024 14:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252908#M36408</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252909#M36409</link>
      <description>Hi,&lt;BR /&gt;You can use just one space as a separator and check trim all columns in your tFileInputDelimited advanced settings.&lt;BR /&gt;Regards,&lt;BR /&gt;Youssef</description>
      <pubDate>Mon, 24 Nov 2008 10:22:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252909#M36409</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-24T10:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252910#M36410</link>
      <description>Youssef, 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks for the response. The number of spaces is random, so this will not quite work. I did think of doing several tmap with a StringHandling.EREPLACE(row1.newColumn," "," ") for each number of spaces, but doing this 6/7 times would not be ideal. 
&lt;BR /&gt; 
&lt;BR /&gt;Example 
&lt;BR /&gt; 
&lt;BR /&gt;1 2 3 4 5 
&lt;BR /&gt;1 2 3 4 5 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Cheers, 
&lt;BR /&gt; 
&lt;BR /&gt;John.</description>
      <pubDate>Mon, 24 Nov 2008 11:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252910#M36410</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-24T11:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252911#M36411</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;The number of spaces is random&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Yes, but at least you have one space. so define just one space as a separator and trim your columns to remove useless spaces. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Youssef</description>
      <pubDate>Mon, 24 Nov 2008 11:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252911#M36411</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-24T11:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252912#M36412</link>
      <description>Youssef,
&lt;BR /&gt;
&lt;BR /&gt;If I use one space as a seperator I end with a new column every time I hit a space
&lt;BR /&gt;
&lt;BR /&gt;so
&lt;BR /&gt;
&lt;BR /&gt;1 2   3
&lt;BR /&gt;
&lt;BR /&gt;becomes
&lt;BR /&gt;
&lt;BR /&gt;1|2||3
&lt;BR /&gt;
&lt;BR /&gt;and not
&lt;BR /&gt;
&lt;BR /&gt;1|2| 3
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;I'll try to strip out the additional spaces before I delimit.
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;John.</description>
      <pubDate>Mon, 24 Nov 2008 11:43:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252912#M36412</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-24T11:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252913#M36413</link>
      <description>Sorry, I didn't realize your problem. 
&lt;BR /&gt;You can use tFileInputRegex to retrieve your columns , in your case the regular expression would be like this: "(+)"+"+"+"(+)"
&lt;BR /&gt;Here, I suppose that you have 2 columns.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Youssef</description>
      <pubDate>Mon, 24 Nov 2008 12:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252913#M36413</guid>
      <dc:creator>youssef2</dc:creator>
      <dc:date>2008-11-24T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252914#M36414</link>
      <description>In case Perl users are reading this topic, here comes a difference between Java and Perl. In Perl tFileInputDelimited, you can set the "Field Separator" to :&lt;BR /&gt;&lt;PRE&gt;/ +/&lt;/PRE&gt;&lt;BR /&gt;(no quote)</description>
      <pubDate>Mon, 24 Nov 2008 12:57:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252914#M36414</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-24T12:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252915#M36415</link>
      <description>Thanks for your help guys, 
&lt;BR /&gt; 
&lt;BR /&gt;In the end I decided to read the file as a one line column delimited by '\n', then using treplace I have set conditions to remove the various number of blank spaces possible and replace with a single space, then an extractdelimited using a single space as the delimiter. 
&lt;BR /&gt; 
&lt;BR /&gt;Its now working. 
&lt;BR /&gt; 
&lt;BR /&gt;As a product trial I am reworking a series of Ab Initio Graphs, so am probably going to post a few questions. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks again.</description>
      <pubDate>Mon, 24 Nov 2008 14:14:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252915#M36415</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-11-24T14:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252916#M36416</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;I have set conditions to remove the various number of blank spaces possible and replace with a single space&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;sounds complex. You can use (in java) the following code to change your spaces: 
&lt;BR /&gt; 
&lt;PRE&gt;stringColumn.replaceAll(" +", " ");&lt;/PRE&gt; 
&lt;BR /&gt;The second parameter could be whatever you want (or need). 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 04 Dec 2008 21:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252916#M36416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-04T21:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Field Seperator - Multiple Spaces</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252917#M36417</link>
      <description>Thanks Volker,  I'll give it a go</description>
      <pubDate>Wed, 10 Dec 2008 16:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Field-Seperator-Multiple-Spaces/m-p/2252917#M36417</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-10T16:05:23Z</dc:date>
    </item>
  </channel>
</rss>

