<?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: Search for text in a string in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18526#M3080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the INDEX() function to find where the nth (probably 1st?) instance of your searched-for piece begins within that string (better use a TRIM() around it all to avoid leading and trailing spaces) and then use the MID() and LEN() functions to cut out just the piece you want.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2018 06:38:45 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2018-05-11T06:38:45Z</dc:date>
    <item>
      <title>Search for text in a string</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18525#M3079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a lengthy string that I need to search for certain values and extract them.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a field called test results :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"ID=9879867234, Confidence=90, Desc=Non destructive testing part2 (KPP=&lt;SPAN style="font-size: 13.3333px;"&gt;081678402&amp;nbsp; KPP-8) UNIT Area: NORTH EAST SECTOR (077)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;"ID=1584858834, Confidence=80, Desc=Dye Examination (KPP=&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;998478111&amp;nbsp; KPP-9) UNIT Area:&amp;nbsp; AAB (5)"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally I need to create some fields from these strings. In the above examples :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Confidence : 90&lt;/P&gt;&lt;P&gt;KPP : &lt;SPAN style="font-size: 13.3333px;"&gt;081678402&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UNIT Area : &lt;SPAN style="font-size: 13.3333px;"&gt;NORTH EAST SECTOR (077)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Confidence : 80&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;KPP : &lt;SPAN style="font-size: 13.3333px;"&gt;998478111&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;UNIT Area : &lt;SPAN style="font-size: 13.3333px;"&gt;AAB (5)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can anyone help please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Many thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Phil&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 06:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18525#M3079</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-05-11T06:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search for text in a string</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18526#M3080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the INDEX() function to find where the nth (probably 1st?) instance of your searched-for piece begins within that string (better use a TRIM() around it all to avoid leading and trailing spaces) and then use the MID() and LEN() functions to cut out just the piece you want.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 06:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18526#M3080</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2018-05-11T06:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search for text in a string</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18527#M3081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;x,&lt;/P&gt;&lt;P&gt;TextBetween(x,'Confidence=',',') As Confidence,&lt;/P&gt;&lt;P&gt;Trim(TextBetween(x,'KPP=','KPP-')) As KPP,&lt;/P&gt;&lt;P&gt;Trim(SubField(x,':',-1)) As [UNIT Area]&lt;/P&gt;&lt;P&gt; Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;x&lt;/P&gt;&lt;P&gt;ID=9879867234, Confidence=90, Desc=Non destructive testing part2 (KPP=081678402&amp;nbsp; KPP-8) UNIT Area: NORTH EAST SECTOR (077)&lt;/P&gt;&lt;P&gt;ID=1584858834, Confidence=80, Desc=Dye Examination (KPP=998478111&amp;nbsp; KPP-9) UNIT Area:&amp;nbsp; AAB (5)&lt;/P&gt;&lt;P&gt;](delimiter is '|');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 11:58:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18527#M3081</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2018-05-11T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search for text in a string</title>
      <link>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18528#M3082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect - Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2018 13:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-for-text-in-a-string/m-p/18528#M3082</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-05-11T13:13:50Z</dc:date>
    </item>
  </channel>
</rss>

