<?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 Matching in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635345#M233021</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use RegEx in the load script which might suit your needs. For a full &lt;SPAN&gt;explanation, see the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;www.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/#more-155&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jun 2014 09:27:46 GMT</pubDate>
    <dc:creator>ThornOfCrowns</dc:creator>
    <dc:date>2014-06-02T09:27:46Z</dc:date>
    <item>
      <title>Pattern Matching</title>
      <link>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635342#M233018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to build an application to check patterns of a few fields in the data. The pattern should be built with 'n' for numbers and 'a' for alphabets. For ex: if the data has '123 A' as value, it's pattern will be 'nnn a' Here is an example of what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="244"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl75" height="18" width="94"&gt;Raw data&lt;/TD&gt;&lt;TD class="xl74" colspan="2" width="128"&gt;Straight table (RESULT)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl75" height="18" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;1234&lt;/TD&gt;&lt;TD class="xl75" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;Pattern&lt;/TD&gt;&lt;TD class="xl75" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;Count&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl75" height="18" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;2345&lt;/TD&gt;&lt;TD class="xl75" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;nnnn&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="18" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;123-ABC&lt;/TD&gt;&lt;TD class="xl75" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;nnn-aaa&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl75" height="18" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;12 BA&lt;/TD&gt;&lt;TD class="xl75" style="border-top-color: currentColor; border-top-width: medium; border-top-style: none;"&gt;nn aa&lt;/TD&gt;&lt;TD align="right" class="xl75" style="border-top-color: currentColor; border-left-color: currentColor; border-top-width: medium; border-left-width: medium; border-top-style: none; border-left-style: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The raw data should remain as it is and the pattern matching needs to happen in the front end, not in the script editor.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;As of now I am lost with this and need a nudge in the right direction. Please help! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 07:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635342#M233018</guid>
      <dc:creator>manas_bn</dc:creator>
      <dc:date>2014-06-02T07:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Matching</title>
      <link>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635343#M233019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess, you have to do it in the script, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map:&lt;BR /&gt;Mapping Load * Inline [&lt;BR /&gt;A, B&lt;BR /&gt;1, n&lt;BR /&gt;2, n&lt;BR /&gt;3, n&lt;BR /&gt;4, n&lt;BR /&gt;5, n&lt;/P&gt;&lt;P&gt;A, a&lt;BR /&gt;B, a&lt;BR /&gt;C, a&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Load *, MapSubString('Map',Data ) as Patterned Inline [&lt;BR /&gt;Data&lt;BR /&gt;1234&lt;BR /&gt;2345&lt;BR /&gt;123_ABC&lt;BR /&gt;123-AB&lt;BR /&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 08:34:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635343#M233019</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-02T08:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Matching</title>
      <link>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635344#M233020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in front end perhaps with a lot of nested replace&lt;/P&gt;&lt;P&gt;Replace(Replace(upper([Raw Data]), '1', 'n'),'2','n')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 09:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635344#M233020</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-06-02T09:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Matching</title>
      <link>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635345#M233021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use RegEx in the load script which might suit your needs. For a full &lt;SPAN&gt;explanation, see the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;www.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/#more-155&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 09:27:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635345#M233021</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-06-02T09:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Pattern Matching</title>
      <link>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635346#M233022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up using Mossimo's solution. The mapping table and Regexp were great suggestions, but I needed something in the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the expression I used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Replace&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;upper&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;[Raw Data])&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;), '1', 'n'),'2','n'),3,'n'),4,'n'),5,'n'),6,'n'),7,'n'),8,'n'),9,'n'),0,'n'),'A','a'),'B','a'),'C','a'),'D','a'),'E','a'),'F','a'),'G','a'),'H','a'),'I','a'),'J','a'),'K','a'),'L','a')&lt;BR /&gt;,'M','a'),'N','a'),'O','a'),'P','a'),'Q','a'),'R','a'),'S','a'),'T','a'),'U','a'),'V','a'),'W','a'),'X','a'),'Y','a'),'Z','a')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Cheers!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jun 2014 21:54:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pattern-Matching/m-p/635346#M233022</guid>
      <dc:creator>manas_bn</dc:creator>
      <dc:date>2014-06-02T21:54:37Z</dc:date>
    </item>
  </channel>
</rss>

