<?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 Expression in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288653#M62121</link>
    <description>&lt;P&gt;Thanks Guys for your replies but both of your codes are removing the&amp;nbsp;alphabets.below is the code&lt;/P&gt;
&lt;P&gt;removechar.substring(0,removechar.replaceAll("[a-zA-Z]","").replaceAll("[^a-zA-Z0-9]", "~").indexOf('~'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with below codes&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-left"&gt;
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
  &lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;
   &lt;DIV class="lia-message-body-content"&gt;
    &lt;P&gt;str.replaceAll("[^0-9]", "") &amp;amp; replaceAll("[A-Z]",""), i tried with changing positions also but couldn't success.&lt;/P&gt;
    &lt;P&gt;Its not showing error but the output is coming with&amp;nbsp;alphabet.&lt;/P&gt;
    &lt;P&gt;&amp;nbsp;&lt;/P&gt;
    &lt;P&gt;Thanks In Advance,&lt;/P&gt;
    &lt;P&gt;Lmit&lt;/P&gt;
    &lt;P&gt;&amp;nbsp;&lt;/P&gt;
    &lt;P&gt;&amp;nbsp;&lt;/P&gt;
   &lt;/DIV&gt;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 11 Oct 2017 19:11:30 GMT</pubDate>
    <dc:creator>lmit</dc:creator>
    <dc:date>2017-10-11T19:11:30Z</dc:date>
    <item>
      <title>Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288646#M62114</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a input with special characters in a string, if i find special character the output should have data before special character&lt;/P&gt;&lt;P&gt;for example : Input file will be like below&lt;/P&gt;&lt;P&gt;data&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;abc-de&lt;/P&gt;&lt;P&gt;abcde+fg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output file should be like&lt;/P&gt;&lt;P&gt;data&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;abc&lt;/P&gt;&lt;P&gt;abcde&lt;/P&gt;&lt;P&gt;How can i achieve it,i tried with regexp but i couldn't get the correct..&lt;/P&gt;&lt;P&gt;What could be the regexp to handle all special characters in tmap or in routine also will be fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone please suggest how can i achieve it.some help would be helpful for me as i have seen some posts but was not useful&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Lmit&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 09:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288646#M62114</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2024-11-16T09:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288647#M62115</link>
      <description>&lt;P&gt;public class HelloWorld{&lt;/P&gt;&lt;P&gt;public static void main(String []args){&lt;BR /&gt;System.out.println("Hello World");&lt;BR /&gt;String str="abc d +";&lt;BR /&gt;System.out.println(str.substring(0,str.replaceAll("[^a-zA-Z0-9]", "~").indexOf('~')));&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my approach,replace all non alphanumeric with '~', take the substring..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288647#M62115</guid>
      <dc:creator>ashif2</dc:creator>
      <dc:date>2017-10-10T12:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288648#M62116</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here it is:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrD4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139961iBA4E6AA12B67D405/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrD4.png" alt="0683p000009LrD4.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;You can copy/paste the regex from here:&lt;/P&gt; 
&lt;PRE&gt;row10.code.replaceAll("[-+].*$", "")&lt;/PRE&gt; 
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 12:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288648#M62116</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-10-10T12:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288649#M62117</link>
      <description>&lt;P&gt;Hi Ashifa,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your quick reply , you code is working fine but i missed one more point thats is ,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input file&lt;/P&gt;
&lt;P&gt;data&lt;/P&gt;
&lt;P&gt;-----&lt;/P&gt;
&lt;P&gt;P100078-9&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the data has&amp;nbsp;alphabets , we should remove that also, i.e., my output should be&lt;/P&gt;
&lt;P&gt;output file&lt;/P&gt;
&lt;P&gt;data&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;100078&lt;/P&gt;
&lt;P&gt;first we need to check in data whether its having special characters and&amp;nbsp;alphabets, if so we need to remove&amp;nbsp;alphabets and need populate the data which is before the special character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot, it was very helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Lmit&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:40:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288649#M62117</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2017-10-10T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288650#M62118</link>
      <description>&lt;P&gt;Thanks TRF for your reply&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288650#M62118</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2017-10-10T13:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288651#M62119</link>
      <description>&lt;P&gt;Complete with this:&lt;/P&gt;&lt;PRE&gt;row10.code.replaceAll("[-+].*$", "").replaceAll("[A-Z]", "")&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:45:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288651#M62119</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-10-10T13:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288652#M62120</link>
      <description>&lt;P&gt;We can do this with one replaceall&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;str.replaceAll("[^0-9]", "")&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288652#M62120</guid>
      <dc:creator>ashif2</dc:creator>
      <dc:date>2017-10-10T14:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex Expression in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288653#M62121</link>
      <description>&lt;P&gt;Thanks Guys for your replies but both of your codes are removing the&amp;nbsp;alphabets.below is the code&lt;/P&gt;
&lt;P&gt;removechar.substring(0,removechar.replaceAll("[a-zA-Z]","").replaceAll("[^a-zA-Z0-9]", "~").indexOf('~'))&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with below codes&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-18 lia-quilt-column-left lia-quilt-column-main-left"&gt;
 &lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-left"&gt;
  &lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;
   &lt;DIV class="lia-message-body-content"&gt;
    &lt;P&gt;str.replaceAll("[^0-9]", "") &amp;amp; replaceAll("[A-Z]",""), i tried with changing positions also but couldn't success.&lt;/P&gt;
    &lt;P&gt;Its not showing error but the output is coming with&amp;nbsp;alphabet.&lt;/P&gt;
    &lt;P&gt;&amp;nbsp;&lt;/P&gt;
    &lt;P&gt;Thanks In Advance,&lt;/P&gt;
    &lt;P&gt;Lmit&lt;/P&gt;
    &lt;P&gt;&amp;nbsp;&lt;/P&gt;
    &lt;P&gt;&amp;nbsp;&lt;/P&gt;
   &lt;/DIV&gt;
  &lt;/DIV&gt;
 &lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 11 Oct 2017 19:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Regex-Expression-in-tmap/m-p/2288653#M62121</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2017-10-11T19:11:30Z</dc:date>
    </item>
  </channel>
</rss>

