<?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: How to Replace Substring Based on Wildcards in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123844#M8604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is wonderful. I didn't know about there is such opportunity to use RegExp in Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Sep 2018 10:31:02 GMT</pubDate>
    <dc:creator>undergrinder</dc:creator>
    <dc:date>2018-09-13T10:31:02Z</dc:date>
    <item>
      <title>How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123838#M8598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to replace a sub string based on a wildcard match. How would I do this? The function "Replace" does not seem to accept wildcards, but conceptually I would like to be able to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;Replace(MyField, 'b.d', 'XYZ'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then examples of field values and results results would look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="125" style="border: 1px solid #000000; width: 221px; height: 115px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Field Value&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Result&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;abcde&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;aXYZe&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;abfde&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;aXYZe&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;abde&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;abde&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;axcde&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;SPAN style="font-family: courier new, courier;"&gt;axcde&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 07:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123838#M8598</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-09-13T07:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123839#M8599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so only bd get replaced when there is something in the middle of it?&lt;/P&gt;&lt;P&gt;I think you will need to use the substring/index function and concatenate the XYZ in the middle of it deleting bd when there is something between bd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 08:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123839#M8599</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2018-09-13T08:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123840#M8600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, but how would I actually do that? It doesn't seem like the index function accepts wildcards either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123840#M8600</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-09-13T10:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123841#M8601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could use mapsubstring() for it. Here two examples what is meant:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1226884"&gt;Re: Passing parameter strings that contain special characters&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1500873"&gt;Re: Wildcard Lookup between two tables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:19:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123841#M8601</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-09-13T10:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123842#M8602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a macro to find and replace using regular expressions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/170591"&gt;Regular expression [A-Z] *&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4587"&gt;How to use regular expressions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:25:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123842#M8602</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-13T10:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123843#M8603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it is a bit bloat but works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;replacemap:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mapping&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;load * Inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ori,new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;bad,b@d&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;bbd,b@d&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;bcd,b@d&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;bfd,b@d&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;bxd,b@d&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;](delimiter is ',');&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;base:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load * inline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;abcde&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;abfde&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;abde&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;axcde&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;eafgbxxdjk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;eafgbxdjk&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;] (delimiter is '|');&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;Final:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Field,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSubString('replacemap',Field) as replace_step,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; replace(MapSubString('replacemap',Field),'@','NewString') as Final&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident base;&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;drop table base;&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;G.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:27:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123843#M8603</guid>
      <dc:creator>undergrinder</dc:creator>
      <dc:date>2018-09-13T10:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123844#M8604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is wonderful. I didn't know about there is such opportunity to use RegExp in Sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:31:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123844#M8604</guid>
      <dc:creator>undergrinder</dc:creator>
      <dc:date>2018-09-13T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123845#M8605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I missed the QS part of the question, the link is related to QV. Need to check for QS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:41:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123845#M8605</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-13T10:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123846#M8606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe have a look at&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm" title="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm"&gt;https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegE…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123846#M8606</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-13T10:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to Replace Substring Based on Wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123847#M8607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I know there is an opportunty to write subroutine in Sense, but you can't do the same with functions.&lt;/P&gt;&lt;P&gt;The editor returns with '&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;Unknown statement: Function&lt;/SPAN&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 13px; background-color: rgba(255, 38, 38, 0.2);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 10:46:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-Replace-Substring-Based-on-Wildcards/m-p/123847#M8607</guid>
      <dc:creator>undergrinder</dc:creator>
      <dc:date>2018-09-13T10:46:42Z</dc:date>
    </item>
  </channel>
</rss>

