<?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: Pattern Check in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212305#M9986</link>
    <description>&lt;P&gt;Try to use this, check the length, then if it contains numeric then populate with&amp;nbsp;"not alphabet"&amp;nbsp; else the value of string&lt;/P&gt;
&lt;P&gt;StringHandling.LEN(row1.NAME) ==0 ? "":&lt;BR /&gt;row1.NAME.Contains("[0-9|") ? "not alphabet" :&lt;/P&gt;
&lt;P&gt;row1.NAME&lt;/P&gt;</description>
    <pubDate>Thu, 28 Mar 2019 19:55:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-28T19:55:17Z</dc:date>
    <item>
      <title>Pattern Check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212304#M9985</link>
      <description>&lt;P&gt;It is silly but I was trying to check alphanumeric pattern and than replace it with a string. I tried to use&amp;nbsp;&amp;nbsp;matches,&amp;nbsp;&lt;SPAN&gt;replaceAll and many more thing. In my findings I understanding that I am not defining the pattern correctly. I hope you guys can help with this silly issue.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Input as string&lt;/TD&gt; 
   &lt;TD&gt;Expected output&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;orange&lt;/TD&gt; 
   &lt;TD&gt;orange&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;1orange&lt;/TD&gt; 
   &lt;TD&gt;not alphabet&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;1--2&lt;/TD&gt; 
   &lt;TD&gt;not alphabet&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;2~9&lt;/TD&gt; 
   &lt;TD&gt;not alphabet&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;mango&lt;/TD&gt; 
   &lt;TD&gt;mango&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;12~banana&lt;/TD&gt; 
   &lt;TD&gt;not alphabet&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;my code:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(row1.NAME) ==0 ? "":&lt;BR /&gt;row1.NAME.matches("^[0-9|A-Z]{3}.*") ? "not alphabet" :&lt;/P&gt; 
&lt;P&gt;row1.NAME&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 19:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212304#M9985</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2019-03-28T19:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212305#M9986</link>
      <description>&lt;P&gt;Try to use this, check the length, then if it contains numeric then populate with&amp;nbsp;"not alphabet"&amp;nbsp; else the value of string&lt;/P&gt;
&lt;P&gt;StringHandling.LEN(row1.NAME) ==0 ? "":&lt;BR /&gt;row1.NAME.Contains("[0-9|") ? "not alphabet" :&lt;/P&gt;
&lt;P&gt;row1.NAME&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 19:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212305#M9986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-28T19:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212306#M9987</link>
      <description>&lt;P&gt;It Didn't work for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;input = 1~6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relational.ISNULL(row1.NAME) ? "" :&lt;BR /&gt;StringHandling.LEN(row1.NAME) ==0 ? "" :&lt;BR /&gt;row1.NAME.contains("[0-9]") ? "not alphabet" : row1.NAME&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried to use IS_ALPHA but it its giving wrong output incase of space between the string "Black Berry"&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relational.ISNULL(row1.NAME) ? "" :&lt;BR /&gt;StringHandling.LEN(row1.NAME) ==0 ? "" :&lt;BR /&gt;StringHandling.IS_ALPHA(row1.NAME) ? row1.NAME : "not alphabet" &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 20:14:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212306#M9987</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2019-03-28T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212307#M9988</link>
      <description>row1.NAME.matches("^[a-zA-Z]*$") ? row1.NAME : “non alpha”&lt;BR /&gt;&lt;BR /&gt;Add null check</description>
      <pubDate>Thu, 28 Mar 2019 21:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212307#M9988</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-28T21:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Check</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212308#M9989</link>
      <description>&lt;P&gt;yes i agree with&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LP7CAAW"&gt;@uganesh&lt;/A&gt;&amp;nbsp;that will take only alphabets in the string&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 21:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pattern-Check/m-p/2212308#M9989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-28T21:41:36Z</dc:date>
    </item>
  </channel>
</rss>

