<?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: Extract substring from string (using RegEx ?) in Qlik Automate</title>
    <link>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059117#M1662</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; I would love this....as an old-school-qv-nerd, some of what i try to do in automations would then be doable in no time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Apr 2023 12:06:18 GMT</pubDate>
    <dc:creator>xyz_1011</dc:creator>
    <dc:date>2023-04-11T12:06:18Z</dc:date>
    <item>
      <title>Extract substring from string (using RegEx ?)</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059015#M1654</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;in my automation i would like to extract a certain substring from a given string. The string is a path like this:&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;02_TRANSFORM/04_MARKETING/Leads.qvs&lt;/STRONG&gt; and extract the last folder from the path. In this case the string i want to extract is&amp;nbsp;&lt;STRONG&gt;04_MARKETING&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I tried using a RegExParse() in an Output block:&amp;nbsp;&lt;STRONG&gt;{regexparse: {$.loop3.item}, '.*\\([^\\]+)\\'}&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Maybe RegEx is the right approach; maybe not...but i would appreciate any hint or advise.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 09:18:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059015#M1654</guid>
      <dc:creator>xyz_1011</dc:creator>
      <dc:date>2023-04-11T09:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extract substring from string (using RegEx ?)</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059057#M1657</link>
      <description>&lt;P&gt;...so i found a regex that does what i need (tested in regex101):&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;.*\/([^\/]+)\/&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but in my automation it fails:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xyz_1011_0-1681207927154.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104594iF8CFEE45291A29EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xyz_1011_0-1681207927154.png" alt="xyz_1011_0-1681207927154.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;any idea, why ?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 10:12:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059057#M1657</guid>
      <dc:creator>xyz_1011</dc:creator>
      <dc:date>2023-04-11T10:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract substring from string (using RegEx ?)</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059101#M1660</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/134857"&gt;@xyz_1011&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Can you use the below expression in your formula to extract the substring?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;'/.*\/(.*)\/(.*)$/'&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Please find the attached screenshot which helps. Let me know if this solution works for you.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RegularExpression_test.JPG" style="width: 894px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/104608i6664DB062AB1A4E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="RegularExpression_test.JPG" alt="RegularExpression_test.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 11:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059101#M1660</guid>
      <dc:creator>Madhushree_BP</dc:creator>
      <dc:date>2023-04-11T11:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Extract substring from string (using RegEx ?)</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059116#M1661</link>
      <description>&lt;P&gt;If the normal Qlik functions are available the above request should be solvable with normal string-functions like subfield() or textbetween().&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 12:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059116#M1661</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-04-11T12:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract substring from string (using RegEx ?)</title>
      <link>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059117#M1662</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; I would love this....as an old-school-qv-nerd, some of what i try to do in automations would then be doable in no time &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 12:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Automate/Extract-substring-from-string-using-RegEx/m-p/2059117#M1662</guid>
      <dc:creator>xyz_1011</dc:creator>
      <dc:date>2023-04-11T12:06:18Z</dc:date>
    </item>
  </channel>
</rss>

