<?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: How to split prefix from firstname in Talend ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340233#M108282</link>
    <description>&lt;P&gt;Dear Team @Richard Hall​&amp;nbsp;@Shicong Hong​&amp;nbsp;@Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have figure out the answer, and love to share the code - so it can be useful to others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqWBAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151812iD092474F9BB22E74/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqWBAA0.png" alt="0695b00000fJqWBAA0.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqW1AAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139878iA62C5CB515064E40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqW1AAK.png" alt="0695b00000fJqW1AAK.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqVwAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131783i829D236EDABBBDDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqVwAAK.png" alt="0695b00000fJqVwAAK.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StringHandling.TRIM(row16.Name).split("\\.")[0]&amp;nbsp; for trimming the prefix. &lt;/P&gt;&lt;P&gt;StringHandling.TRIM(row16.Name).split("\\.")[1]&amp;nbsp; for removing the prefix from name&lt;/P&gt;&lt;P&gt;StringHandling.TRIM(row16.Name).split("\\.")[1] + " " + row17.Middle_Name&amp;nbsp;  for including first name with middle name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;NOTES:  ( WHEN DEALING WITH DOT )&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt; &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;You need to escape the dot if you want to split on a&amp;nbsp;&lt;I&gt;literal&lt;/I&gt;&amp;nbsp;dot:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;String extensionRemoved = filename.split("\\.")[0];&lt;/P&gt;&lt;P&gt;Otherwise you are splitting on the regex&amp;nbsp;., which means "any character".&lt;/P&gt;&lt;P&gt;&lt;B&gt;Note the double backslash needed to create a single backslash in the regex.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If You're getting an&amp;nbsp;&lt;B&gt;ArrayIndexOutOfBoundsException&lt;/B&gt; because your input string is just a dot, i.e.&amp;nbsp;".", which is an edge case that produces an empty array when split on dot;&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#split-java.lang.String-" alt="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#split-java.lang.String-" target="_blank"&gt;s&lt;/A&gt;plit(regex) removes all trailing blanks from the result, but since splitting a dot on a dot leaves only two blanks, after trailing blanks are removed you're left with an empty array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS FOR ALL THE SUPPORT..!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 08:30:23 GMT</pubDate>
    <dc:creator>prabuj</dc:creator>
    <dc:date>2023-04-12T08:30:23Z</dc:date>
    <item>
      <title>How to split prefix from firstname in Talend ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340228#M108277</link>
      <description>&lt;P&gt;Dear Team,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Richard Hall @Shicong Hong @Xiaodi Shi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;I have these 3 requirement.&lt;/B&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;B&gt;I have a prefix coming in name. I would like to split the prefix and move to target.&lt;/B&gt;&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;I would like to remove the prefix from name&lt;/B&gt;&lt;/LI&gt;&lt;LI&gt;&lt;B&gt;I would like to include firstname&lt;/B&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Sample data &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mr. Prabhakaran &lt;/P&gt;&lt;P&gt;Mr. Kevin&lt;/P&gt;&lt;P&gt;Mrs. Lindsay&lt;/P&gt;&lt;P&gt;Miss. Pinit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Required Result :  &lt;/B&gt;&lt;B&gt;( 1st requirement result )&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Mr&lt;/P&gt;&lt;P&gt;Mrs&lt;/P&gt;&lt;P&gt;Miss&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Required Result :  ( 2nd requirement result )&lt;/B&gt;&lt;/P&gt;&lt;P&gt;Prabhakaran&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;P&gt;Lindsay&lt;/P&gt;&lt;P&gt;Pinit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Required Result: (3rd requirement result )&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Rajendran&lt;/B&gt; Prabhakaran&lt;/P&gt;&lt;P&gt;&lt;B&gt;Prabuj&lt;/B&gt; Kevin&lt;/P&gt;&lt;P&gt;&lt;B&gt;Lohan&lt;/B&gt; Lindsay&lt;/P&gt;&lt;P&gt;&lt;B&gt;Julaluk&lt;/B&gt; Pinit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. Please share me with me a clear example , it could help everyone who see the post in future as well as me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 02:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340228#M108277</guid>
      <dc:creator>prabuj</dc:creator>
      <dc:date>2023-04-12T02:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to split prefix from firstname in Talend ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340229#M108278</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;If we understand your requirement very well, you are able to achieve your goal Via tExtractDelimitedFields component.&lt;/P&gt;&lt;P&gt;Extracting a delimited string column (sample data)by setting field separator as "." and then concatenating your 2nd requirement result with the real first name in tMap or Uniting them via tUnite component&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 06:18:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340229#M108278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-12T06:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to split prefix from firstname in Talend ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340230#M108279</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is a demo job work flow.&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqObAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128513iC2412F39B79372C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqObAAK.png" alt="0695b00000fJqObAAK.png" /&gt;&lt;/span&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 06:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340230#M108279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-12T06:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to split prefix from firstname in Talend ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340231#M108280</link>
      <description>&lt;P&gt;Using tExtractDelimitedFields, by using field seperator as "." - it won't collect the result. &lt;/P&gt;&lt;P&gt;&amp;nbsp;Because the components work with comma, colon : , semicolon; as per the talend guide. How you can do it with dot as a field seperator ?????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First name &lt;/P&gt;&lt;P&gt;Mr. Prabhakaranrajendran &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How you can concatenate within a column, when it don't produce the result. ? If you concatenate , the 2nd part is the fullname with prefix. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st requirement is to &lt;B&gt;split&lt;/B&gt; the prefix.&lt;/P&gt;&lt;P&gt;2nd requirement is to &lt;B&gt;remove&lt;/B&gt; the prefix from name&lt;/P&gt;&lt;P&gt;3rd is to &lt;B&gt;include&lt;/B&gt; firstname before middle name. ( Prabhakaran Kuppusamy Rajendran)&lt;/P&gt;&lt;P&gt;Kuppusamy is the middle name.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqQ8AAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139308i3BA71DF4F5D0472A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqQ8AAK.png" alt="0695b00000fJqQ8AAK.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqPZAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134384i0D4B8E0CB2CA0D21/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqPZAA0.png" alt="0695b00000fJqPZAA0.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqPUAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154230iA8C1CC5A276CEEDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqPUAA0.png" alt="0695b00000fJqPUAA0.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY QUERY IS NOT SOLVED. COULD YOU PLEASE HELP OUT (OR) SHOW WHAT YOU HAVE DONE INSIDE TMAP.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 07:02:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340231#M108280</guid>
      <dc:creator>prabuj</dc:creator>
      <dc:date>2023-04-12T07:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to split prefix from firstname in Talend ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340232#M108281</link>
      <description>&lt;P&gt;@Xiaodi Shi​&amp;nbsp;@Shicong Hong​ @Richard Hall​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using tExtractDelimitedFields, by using field seperator as "." - it won't collect the result. &lt;/P&gt;&lt;P&gt;Because the components work with comma, colon : , semicolon; as per the talend guide. How you can do it with dot as a field seperator ?????&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;First name ( COLUMN_NAME ) &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Mr. Prabhakaranrajendran &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How you can concatenate within a column, when it don't produce the result. ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1st requirement is to &lt;B&gt;split&lt;/B&gt; the prefix.&lt;/P&gt;&lt;P&gt;2nd requirement is to &lt;B&gt;remove&lt;/B&gt; the prefix from name&lt;/P&gt;&lt;P&gt;3rd is to &lt;B&gt;include&lt;/B&gt; firstname before middle name. ( Prabhakaran Kuppusamy Rajendran)&lt;/P&gt;&lt;P&gt;Kuppusamy is the middle name.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqQ8AAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139308i3BA71DF4F5D0472A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqQ8AAK.png" alt="0695b00000fJqQ8AAK.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqPZAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134384i0D4B8E0CB2CA0D21/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqPZAA0.png" alt="0695b00000fJqPZAA0.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqPUAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154230iA8C1CC5A276CEEDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqPUAA0.png" alt="0695b00000fJqPUAA0.png" /&gt;&lt;/span&gt;&lt;B&gt;&amp;nbsp;RESULT FAILED TO SPLIT AS PER YOUR ADVISED.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MY QUERY IS NOT SOLVED. COULD YOU PLEASE HELP OUT (OR) SHOW WHAT YOU HAVE DONE INSIDE TMAP. I FIGURE OUT THE WAY FOR THE 1st requirement in another way , at the end I will share the result. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I WOULD LIKE TO KNOW FOR 2nd &amp;amp; 3rd REQUIREMENT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 07:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340232#M108281</guid>
      <dc:creator>prabuj</dc:creator>
      <dc:date>2023-04-12T07:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to split prefix from firstname in Talend ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340233#M108282</link>
      <description>&lt;P&gt;Dear Team @Richard Hall​&amp;nbsp;@Shicong Hong​&amp;nbsp;@Xiaodi Shi​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have figure out the answer, and love to share the code - so it can be useful to others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqWBAA0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151812iD092474F9BB22E74/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqWBAA0.png" alt="0695b00000fJqWBAA0.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqW1AAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139878iA62C5CB515064E40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqW1AAK.png" alt="0695b00000fJqW1AAK.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000fJqVwAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131783i829D236EDABBBDDF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000fJqVwAAK.png" alt="0695b00000fJqVwAAK.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;StringHandling.TRIM(row16.Name).split("\\.")[0]&amp;nbsp; for trimming the prefix. &lt;/P&gt;&lt;P&gt;StringHandling.TRIM(row16.Name).split("\\.")[1]&amp;nbsp; for removing the prefix from name&lt;/P&gt;&lt;P&gt;StringHandling.TRIM(row16.Name).split("\\.")[1] + " " + row17.Middle_Name&amp;nbsp;  for including first name with middle name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;NOTES:  ( WHEN DEALING WITH DOT )&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt; &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;You need to escape the dot if you want to split on a&amp;nbsp;&lt;I&gt;literal&lt;/I&gt;&amp;nbsp;dot:&lt;/B&gt;&lt;/P&gt;&lt;P&gt;String extensionRemoved = filename.split("\\.")[0];&lt;/P&gt;&lt;P&gt;Otherwise you are splitting on the regex&amp;nbsp;., which means "any character".&lt;/P&gt;&lt;P&gt;&lt;B&gt;Note the double backslash needed to create a single backslash in the regex.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If You're getting an&amp;nbsp;&lt;B&gt;ArrayIndexOutOfBoundsException&lt;/B&gt; because your input string is just a dot, i.e.&amp;nbsp;".", which is an edge case that produces an empty array when split on dot;&amp;nbsp;&lt;A href="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#split-java.lang.String-" alt="https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#split-java.lang.String-" target="_blank"&gt;s&lt;/A&gt;plit(regex) removes all trailing blanks from the result, but since splitting a dot on a dot leaves only two blanks, after trailing blanks are removed you're left with an empty array.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANKS FOR ALL THE SUPPORT..!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 08:30:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-prefix-from-firstname-in-Talend/m-p/2340233#M108282</guid>
      <dc:creator>prabuj</dc:creator>
      <dc:date>2023-04-12T08:30:23Z</dc:date>
    </item>
  </channel>
</rss>

