<?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: Wildcard in replace in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1890665#M1217264</link>
    <description>&lt;P&gt;There are some examples using regular expressions in this forum that might do the trick.&lt;/P&gt;</description>
    <pubDate>Tue, 08 Feb 2022 22:26:26 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2022-02-08T22:26:26Z</dc:date>
    <item>
      <title>Wildcard in replace</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1890580#M1217261</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am scraping some data from a website and then cleaning it in QlikView. Some of the fields include text like "1 person found this review helpful", which I want to strip. Below is what I am currently doing in my load script, and it works, but the problems is that X number of people can find a review helpful, so to catch all the scenarios I would need to expand on this expression almost indefinitely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;replace(replace(replace(replace(&lt;BR /&gt;Purgechar(cons, chr(10)&amp;amp;chr(13)),&lt;BR /&gt;'HelpfulShareRepor',''),&lt;BR /&gt;'Be the first to find this review helpful',''),&lt;BR /&gt;'1 person found this review helpful',''),&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'2 people found this review helpful','')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;as cons,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So ideally I would want to use a wildcard character to replace that entire sentence, so that even if it says&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;'9 people found this review helpful',&amp;nbsp;&lt;/STRONG&gt;&lt;FONT color="#000000"&gt;I can still have it replaced. But the replace function doesn't take wildcards...&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;any ideas how I can achieve this?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 18:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1890580#M1217261</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2022-02-08T18:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcard in replace</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1890665#M1217264</link>
      <description>&lt;P&gt;There are some examples using regular expressions in this forum that might do the trick.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 22:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1890665#M1217264</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-02-08T22:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcard in replace</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1890764#M1217269</link>
      <description>&lt;P&gt;I got a notification saying that I marked this response as the correct answer, although I did not. I do appreciate the feedback and I will go looking, but I'm a little disappointed that all I am getting is a "go look elsewhere" answer. For people trying to learn and collaborate, this forum is usually very approachable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 07:07:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1890764#M1217269</guid>
      <dc:creator>gerhardl</dc:creator>
      <dc:date>2022-02-09T07:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Wildcard in replace</title>
      <link>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1891232#M1217297</link>
      <description>&lt;P&gt;Don't know how the post got marked as solution, but a quick search provided these links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Replacing-Text-using-Wildcards/td-p/278923" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Replacing-Text-using-Wildcards/td-p/278923&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/Regular-expression-A-Z/td-p/851408" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/Regular-expression-A-Z/td-p/851408&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/How-to-use-regular-expressions/ta-p/1477236" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/How-to-use-regular-expressions/ta-p/1477236&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I think the&amp;nbsp;&lt;SPAN&gt;RegExp.Replace example should work in your case as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Marco&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 20:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Wildcard-in-replace/m-p/1891232#M1217297</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2022-02-09T20:03:49Z</dc:date>
    </item>
  </channel>
</rss>

