<?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: Regex to subset a string between &amp;quot; - &amp;quot; in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50777#M19210</link>
    <description>&lt;P&gt;Thanks John for your solution! I plugged it in and it worked.&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;</description>
    <pubDate>Mon, 20 Mar 2017 13:18:44 GMT</pubDate>
    <dc:creator>rev</dc:creator>
    <dc:date>2017-03-20T13:18:44Z</dc:date>
    <item>
      <title>Regex to subset a string between " - "</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50750#M19207</link>
      <description>&lt;P&gt;So, I have the following data in a single column:&lt;/P&gt;&lt;P&gt;10-Junior-32&lt;/P&gt;&lt;P&gt;101-Senior-23&lt;/P&gt;&lt;P&gt;102-Senior Pres-34&lt;/P&gt;&lt;P&gt;01-Senior Pres XYZ-30&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and this is the desired output:&lt;/P&gt;&lt;P&gt;Junior&lt;/P&gt;&lt;P&gt;Senior&lt;/P&gt;&lt;P&gt;Senior Pres&lt;/P&gt;&lt;P&gt;Senior Pres XYZ&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to subset the string between the "-".&lt;/P&gt;&lt;P&gt;Since neither the position is set or the number of characters to take out.&lt;/P&gt;&lt;P&gt;I can only think of regex which could subset the string between "-" and put it into a new column. That is the desired output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts or suggestions would be highly appreciated. Thanks!!!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2024 22:07:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50750#M19207</guid>
      <dc:creator>rev</dc:creator>
      <dc:date>2024-06-13T22:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to subset a string between " - "</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50751#M19208</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/11204"&gt;@rev&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I believe this should work: a formula tool creating your new column using the expression...&lt;/P&gt;&lt;PRE&gt;REGEX_Replace([f1], ".*-(.*)-.*", "$1")&lt;/PRE&gt;&lt;P&gt;... where &lt;STRONG&gt;[f1]&lt;/STRONG&gt; is your original field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same concept can be achieved with the RegEx tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- John&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 04:12:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50751#M19208</guid>
      <dc:creator>JohnJPS</dc:creator>
      <dc:date>2017-03-20T04:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to subset a string between " - "</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50758#M19209</link>
      <description>I agree with John. If the matching data is always numeric that you are discarding, you could change this to:&lt;BR /&gt;&lt;BR /&gt;\d+-(.*)-\d+&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Mar 2017 10:59:54 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50758#M19209</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2017-03-20T10:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to subset a string between " - "</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50777#M19210</link>
      <description>&lt;P&gt;Thanks John for your solution! I plugged it in and it worked.&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:18:44 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50777#M19210</guid>
      <dc:creator>rev</dc:creator>
      <dc:date>2017-03-20T13:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Regex to subset a string between " - "</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50778#M19211</link>
      <description>&lt;P&gt;Thanks @MarqueeCrew for your input. There might be cases where there's more than just digits on either side of the "-" delimiter. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:20:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Regex-to-subset-a-string-between-quot-quot/m-p/50778#M19211</guid>
      <dc:creator>rev</dc:creator>
      <dc:date>2017-03-20T13:20:25Z</dc:date>
    </item>
  </channel>
</rss>

