<?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: Replacing Text using Wildcards? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278929#M497030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your function appears to age well, it helped me out great today!&lt;/P&gt;&lt;P&gt;I've improved the RegEx-pattern a bit to also exclude &amp;amp;nsbp;-like tags from the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15093572413257488" jivemacro_uid="_15093572413257488"&gt;
&lt;P&gt;function removeTags(rawHTML)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dim objRegExp, strOutput&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Set objRegExp = New Regexp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objRegExp.IgnoreCase = True&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objRegExp.Global = True&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objRegExp.Pattern = &lt;SPAN style="color: rgba(0, 0, 0, 0);"&gt;"&amp;lt;[^&amp;gt;]*&amp;gt;|&amp;amp;[^&amp;gt;]*;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'Replace all HTML tag matches with the empty string&lt;/P&gt;
&lt;P&gt;&amp;nbsp; strOutput = objRegExp.Replace(rawHTML, "")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; removeTags = strOutput&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Return the value of strOutput&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Set objRegExp = Nothing&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;End Function&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 09:55:29 GMT</pubDate>
    <dc:creator>RonaldDoes</dc:creator>
    <dc:date>2017-10-30T09:55:29Z</dc:date>
    <item>
      <title>Replacing Text using Wildcards?</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278923#M497024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched the Internet for my problem, but didn't find an appropriate solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is to replace all "&amp;lt;*&amp;gt;" (* = Wildcard) in a string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I have this string: &amp;lt;p&amp;gt;Bauers &amp;lt;strong&amp;gt;"Auto-Zeitung"&amp;lt;/strong&amp;gt; erscheint zusätzlich als Pocket-Ausgabe. Die Aktion ist allerdings auf eine Ausgabe beschränkt, denn die Mini-Version dient vor allem einem Werbekonzept für das neue &amp;lt;strong&amp;gt;Volkswagen&amp;lt;/strong&amp;gt;-Modell Up.&amp;lt;/p&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want it to become this: Bauers "Auto-Zeitung" erscheint zusätzlich als Pocket-Ausgabe. Die Aktion ist allerdings auf eine Ausgabe beschränkt, denn die Mini-Version dient vor allem einem Werbekonzept für das neue Volkswagen-Modell Up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible using the replace expression or is there another solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 10:06:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278923#M497024</guid>
      <dc:creator />
      <dc:date>2011-10-27T10:06:42Z</dc:date>
    </item>
    <item>
      <title>Replacing Text using Wildcards?</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278924#M497025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No wildcards, in replace, as far as I know..&lt;/P&gt;&lt;P&gt;This one is probably not the best solution, but it should work:&lt;/P&gt;&lt;P&gt;=textbetween(YourTextField, '&amp;gt;','&amp;lt;', 1) &amp;amp; ' ' &amp;amp;&lt;/P&gt;&lt;P&gt; textbetween(YourTextField, '&amp;gt;','&amp;lt;', 2) &amp;amp;&amp;nbsp; ' ' &amp;amp;&lt;/P&gt;&lt;P&gt; textbetween(YourTextField, '&amp;gt;','&amp;lt;', 3) &amp;amp; ' ' &amp;amp;&lt;/P&gt;&lt;P&gt; ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278924#M497025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-27T14:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Text using Wildcards?</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278925#M497026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest that you use a macro function that will make use of regular expressions to remove the tags, like a JScript&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function removeTags(rawText) {&lt;/P&gt;&lt;P&gt; return rawText.replace(/&amp;lt;[^&amp;gt;]*&amp;gt;/gi, "");&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then call this function in your load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:15:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278925#M497026</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-27T14:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Text using Wildcards?</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278926#M497027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this sounds really good and thanks for the help so far. Do you know an appropriate function for VBscript? Or does this only work with JScript?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278926#M497027</guid>
      <dc:creator />
      <dc:date>2011-10-27T14:38:54Z</dc:date>
    </item>
    <item>
      <title>Replacing Text using Wildcards?</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278927#M497028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function removeTags(rawHTML)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Dim objRegExp, strOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objRegExp = New Regexp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; objRegExp.IgnoreCase = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; objRegExp.Global = True&lt;/P&gt;&lt;P&gt;&amp;nbsp; objRegExp.Pattern = "&amp;lt;[^&amp;gt;]*&amp;gt;" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Replace all HTML tag matches with the empty string&lt;/P&gt;&lt;P&gt;&amp;nbsp; strOutput = objRegExp.Replace(rawHTML, "")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; removeTags = strOutput&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Return the value of strOutput&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objRegExp = Nothing&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:40:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278927#M497028</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-27T14:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Text using Wildcards?</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278928#M497029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks!! I would have never figured that out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have to remember this &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 14:52:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278928#M497029</guid>
      <dc:creator />
      <dc:date>2011-10-27T14:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Replacing Text using Wildcards?</title>
      <link>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278929#M497030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your function appears to age well, it helped me out great today!&lt;/P&gt;&lt;P&gt;I've improved the RegEx-pattern a bit to also exclude &amp;amp;nsbp;-like tags from the source.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="php" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15093572413257488" jivemacro_uid="_15093572413257488"&gt;
&lt;P&gt;function removeTags(rawHTML)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Dim objRegExp, strOutput&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Set objRegExp = New Regexp&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objRegExp.IgnoreCase = True&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objRegExp.Global = True&lt;/P&gt;
&lt;P&gt;&amp;nbsp; objRegExp.Pattern = &lt;SPAN style="color: rgba(0, 0, 0, 0);"&gt;"&amp;lt;[^&amp;gt;]*&amp;gt;|&amp;amp;[^&amp;gt;]*;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; 'Replace all HTML tag matches with the empty string&lt;/P&gt;
&lt;P&gt;&amp;nbsp; strOutput = objRegExp.Replace(rawHTML, "")&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; removeTags = strOutput&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Return the value of strOutput&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Set objRegExp = Nothing&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;End Function&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 09:55:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replacing-Text-using-Wildcards/m-p/278929#M497030</guid>
      <dc:creator>RonaldDoes</dc:creator>
      <dc:date>2017-10-30T09:55:29Z</dc:date>
    </item>
  </channel>
</rss>

