<?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: Index of string '* ??-??? *' in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720404#M677152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may replace each digit with 'n' and then locate 'nn-nnn' using index() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 21 Jun 2014 01:58:08 GMT</pubDate>
    <dc:creator>nagaiank</dc:creator>
    <dc:date>2014-06-21T01:58:08Z</dc:date>
    <item>
      <title>Index of string '* ??-??? *'</title>
      <link>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720402#M677150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to find an index of string '* ??-??? *' where question mark is a single digit and a star is any number of characters. 2nd and 3rd digits are seperated by a dash and there are spaces before 1st anf after 5th digit. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Example&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;String: Berliner Str. 154 20-254 Chemnitz&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Substring: 20-254&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Result: 27&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I used MapSubString replacing ??-??? with a special character and found the index but it happened that ??-??? appeared in another part of a string (e.g. String: Berliner Str. 1&lt;STRONG&gt;46-148&lt;/STRONG&gt; 20-254 Chemnitz; Substring: &lt;STRONG&gt;46-148&lt;/STRONG&gt;) and MapSubString won't work here as it can't cope with surrounding spaces (when mapping ' 46-148 ' MapSubString will actually map '46-148'). Any idea how to get that index?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Przemek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 16:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720402#M677150</guid>
      <dc:creator />
      <dc:date>2014-06-20T16:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: Index of string '* ??-??? *'</title>
      <link>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720403#M677151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Przemek, could you post your current script snippet? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jun 2014 21:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720403#M677151</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-20T21:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Index of string '* ??-??? *'</title>
      <link>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720404#M677152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may replace each digit with 'n' and then locate 'nn-nnn' using index() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 01:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720404#M677152</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2014-06-21T01:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Index of string '* ??-??? *'</title>
      <link>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720405#M677153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't due to the problem described in the above example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 07:38:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720405#M677153</guid>
      <dc:creator />
      <dc:date>2014-06-21T07:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Index of string '* ??-??? *'</title>
      <link>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720406#M677154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found a workaround - &lt;STRONG&gt;when loading data from a file instead of inline QV recognises surrounding spaces&lt;/STRONG&gt; so I moved all MapSubString data to a file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2014 07:41:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Index-of-string/m-p/720406#M677154</guid>
      <dc:creator />
      <dc:date>2014-06-21T07:41:13Z</dc:date>
    </item>
  </channel>
</rss>

