<?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: Regular expressions for parsing strings in the QlikView script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428029#M698108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a quick note for QVSource users, we have added a new RegEx option in our text &lt;A href="http://wiki.qvsource.com/Sentiment-Analysis-And-Text-Analytics-Connector-For-QlikView.ashx"&gt;analytics and sentiment analysis connector&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently it supports finding strings in a supplied text (for example searching for all URL or phone numbers etc.) but we are keen to get feedback and add other features which will be commonly needed by QlikView users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Apr 2014 08:18:11 GMT</pubDate>
    <dc:creator>chrisbrain</dc:creator>
    <dc:date>2014-04-17T08:18:11Z</dc:date>
    <item>
      <title>Regular expressions for parsing strings in the QlikView script?</title>
      <link>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428026#M698105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;Hey guys. Is there a smart way to parse strings in a QV script a la regular expressions? I have a string in my data and I need to parse out a portion of it, but I can't find any string function that can tell me whether an indexed character is a number or letter. The string should always start with 6 digits, so I need to throw away any strings that contain alpha chars in the first 6 places. Then, the 7th character should be a letter U, so I want to throw away any strings that don't contain 6 digits followed by a letter U. Then, the 8th character must be a number. The 9th character could be a number or letter, but I only want it if it's a number. Anything after the 9th character I want to discard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;So for example, if the string is 092962U1, the result of the expression should be U1. If the string is 080738U1EP, the result should be U1. If it's 060645U22, the result should be U22, and if the string is 060645U22JP, the result should be U22. Does that make sense?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;I appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #575757; background-color: #ffffff;"&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 17:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428026#M698105</guid>
      <dc:creator />
      <dc:date>2013-01-16T17:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expressions for parsing strings in the QlikView script?</title>
      <link>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428027#M698106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, there are no regular expressions on QlikView, check this post &lt;A class="loading" href="http://www.qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/" title="http://www.qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/"&gt;http://www.qlikfix.com/2010/10/18/regular-expressions-in-the-load-script/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 17:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428027#M698106</guid>
      <dc:creator>danielrozental</dc:creator>
      <dc:date>2013-01-16T17:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expressions for parsing strings in the QlikView script?</title>
      <link>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428028#M698107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's a simple way to do this, assuming your field is called myField:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(mid(myField,7,1)='U' and isnum(num#(left(myField,6))),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mid(myField,index(myField,'U'),if(isnum(num#(mid(myField,9,1))),3,2)),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'garbage' //7th character is not 'U' and/or first 6 characters are not numbers&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2013 22:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428028#M698107</guid>
      <dc:creator>vgutkovsky</dc:creator>
      <dc:date>2013-01-16T22:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Regular expressions for parsing strings in the QlikView script?</title>
      <link>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428029#M698108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a quick note for QVSource users, we have added a new RegEx option in our text &lt;A href="http://wiki.qvsource.com/Sentiment-Analysis-And-Text-Analytics-Connector-For-QlikView.ashx"&gt;analytics and sentiment analysis connector&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently it supports finding strings in a supplied text (for example searching for all URL or phone numbers etc.) but we are keen to get feedback and add other features which will be commonly needed by QlikView users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 08:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regular-expressions-for-parsing-strings-in-the-QlikView-script/m-p/428029#M698108</guid>
      <dc:creator>chrisbrain</dc:creator>
      <dc:date>2014-04-17T08:18:11Z</dc:date>
    </item>
  </channel>
</rss>

