<?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 How to look for data in a particular format in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196125#M408</link>
    <description>&lt;P&gt;Hello.&amp;nbsp; I have some address data and I'd like to derive the country based on whether there's a UK postcode in the data.&amp;nbsp; So if the value in the postcode column is one of these formats then I want to assume that the country is UK&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;An nAA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Ann nAA&lt;/P&gt;
&lt;P&gt;AAn nAA&lt;/P&gt;
&lt;P&gt;AAnn nAA&lt;/P&gt;
&lt;P&gt;AnA nAA&lt;/P&gt;
&lt;P&gt;AAnA nAA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A=Alpha character&lt;/P&gt;
&lt;P&gt;n=numeric character&lt;/P&gt;
&lt;P&gt;Is it possible to do that in tMap?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 02:15:53 GMT</pubDate>
    <dc:creator>JM39</dc:creator>
    <dc:date>2024-11-16T02:15:53Z</dc:date>
    <item>
      <title>How to look for data in a particular format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196125#M408</link>
      <description>&lt;P&gt;Hello.&amp;nbsp; I have some address data and I'd like to derive the country based on whether there's a UK postcode in the data.&amp;nbsp; So if the value in the postcode column is one of these formats then I want to assume that the country is UK&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;An nAA&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Ann nAA&lt;/P&gt;
&lt;P&gt;AAn nAA&lt;/P&gt;
&lt;P&gt;AAnn nAA&lt;/P&gt;
&lt;P&gt;AnA nAA&lt;/P&gt;
&lt;P&gt;AAnA nAA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A=Alpha character&lt;/P&gt;
&lt;P&gt;n=numeric character&lt;/P&gt;
&lt;P&gt;Is it possible to do that in tMap?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196125#M408</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2024-11-16T02:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to look for data in a particular format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196126#M409</link>
      <description>To check uk postal code format. There is a regex&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://howtodoinjava.com/regex/uk-postcode-validation/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://howtodoinjava.com/regex/uk-postcode-validation/&lt;/A&gt;</description>
      <pubDate>Tue, 02 Jun 2020 21:07:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196126#M409</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-02T21:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to look for data in a particular format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196127#M410</link>
      <description>&lt;P&gt;That's really helpful, thank you.&amp;nbsp; But how would I put this into the tMap expression?&amp;nbsp; I tried this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;row1.Postcode.matches ("^[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}$") ? "GB" : null &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT&gt;So I'm saying if the postcode matches the pattern, then set the value to GB, else null but it doesn't seem to like that.&amp;nbsp; It produces a&amp;nbsp;java.lang.NullPointerException error.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 10:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196127#M410</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-06-03T10:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to look for data in a particular format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196128#M411</link>
      <description>&lt;P&gt;you might have postcode null in input&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(row1.Postcode != null) &amp;amp;&amp;amp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;row1.Postcode.matches ("^[A-Z]{1,2}[0-9R][0-9A-Z]? [0-9][ABD-HJLNP-UW-Z]{2}$") ? "GB" : null&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2020 10:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196128#M411</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-03T10:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to look for data in a particular format</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196129#M412</link>
      <description>&lt;P&gt;Perfect, that worked thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 21:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-look-for-data-in-a-particular-format/m-p/2196129#M412</guid>
      <dc:creator>JM39</dc:creator>
      <dc:date>2020-06-04T21:20:15Z</dc:date>
    </item>
  </channel>
</rss>

