<?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 Removing Substring in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Removing-Substring-in-Load-Script/m-p/325642#M119912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using index function to get the position of your substring, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as SUBSTRING STUFF HERE:&lt;/P&gt;&lt;P&gt;mid(URL,index(URL,'/specificpage.cfm?id=')+21, 5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 21 is the count of characters in your searchstring (hope I counted correctly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2011 18:03:56 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-10-10T18:03:56Z</dc:date>
    <item>
      <title>Removing Substring in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Substring-in-Load-Script/m-p/325641#M119911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; How would I go about removing a substring whenever I find a specific pattern in a field in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If the string is &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.internet.com/specificpage.cfm?id=12345"&gt;http://www.internet.com/specificpage.cfm?id=12345&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would want to grab the '12345' everytime there is '/specificpage.cfm?id='&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Even if the url was &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.internet.com/specificpage.cfm?id=12345&amp;amp;other=stuff"&gt;http://www.internet.com/specificpage.cfm?id=12345&amp;amp;other=stuff&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am trying to find a specific pattern, note its place in the string, and then make a substring with the 5 characters after that position... I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have gotten this far before getting stumped: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(wildmatch(URL,'*/specificpage.cfm?id=*')=1,SUBSTRING STUFF HERE,0) as id_substring;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!,&lt;/P&gt;&lt;P&gt;Tyler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 17:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Substring-in-Load-Script/m-p/325641#M119911</guid>
      <dc:creator />
      <dc:date>2011-10-10T17:50:11Z</dc:date>
    </item>
    <item>
      <title>Removing Substring in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Substring-in-Load-Script/m-p/325642#M119912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try using index function to get the position of your substring, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as SUBSTRING STUFF HERE:&lt;/P&gt;&lt;P&gt;mid(URL,index(URL,'/specificpage.cfm?id=')+21, 5)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 21 is the count of characters in your searchstring (hope I counted correctly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 18:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Substring-in-Load-Script/m-p/325642#M119912</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-10T18:03:56Z</dc:date>
    </item>
    <item>
      <title>Removing Substring in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/Removing-Substring-in-Load-Script/m-p/325643#M119913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2011 18:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Removing-Substring-in-Load-Script/m-p/325643#M119913</guid>
      <dc:creator />
      <dc:date>2011-10-10T18:32:40Z</dc:date>
    </item>
  </channel>
</rss>

