<?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: removing text to the right of a character in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145212#M38752</link>
    <description>&lt;P&gt;forgot attachment&lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 18:33:43 GMT</pubDate>
    <dc:creator>ivoller</dc:creator>
    <dc:date>2018-03-15T18:33:43Z</dc:date>
    <item>
      <title>removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145200#M38749</link>
      <description>&lt;P&gt;How do I remove all text to the right of the last "\", including the slash?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how do I remove all text to the right of the 2nd to last slash?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if I have 123\abc\dcc\xyz, how would i get 123\abc\dcc? how would i get 123\abc?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 05:01:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145200#M38749</guid>
      <dc:creator>bb213</dc:creator>
      <dc:date>2018-05-24T05:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145205#M38750</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have a multiple requirements for the number of \ to consider you may want to use the Text to Columns tool and then rebuild desired strings in a Formula. Otherwise, a formula tool will work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Iain&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 18:05:42 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145205#M38750</guid>
      <dc:creator>ivoller</dc:creator>
      <dc:date>2018-03-15T18:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145208#M38751</link>
      <description>&lt;P&gt;And that formula would be what?&amp;nbsp; The length of the characters is never the same.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 18:13:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145208#M38751</guid>
      <dc:creator>bb213</dc:creator>
      <dc:date>2018-03-15T18:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145212#M38752</link>
      <description>&lt;P&gt;forgot attachment&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 18:33:43 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145212#M38752</guid>
      <dc:creator>ivoller</dc:creator>
      <dc:date>2018-03-15T18:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145213#M38753</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1354"&gt;@ivoller&lt;/a&gt;&amp;nbsp;provides some good solutions however if you would like the number of splits to be dynamic then I would consider using the text to columns tool but using the 'split to rows' method.&lt;BR /&gt;&lt;BR /&gt;You can then cross-tab your data back and you'll have n numbers of columns for each record. You can then concatenate them together as you wish.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 18:47:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145213#M38753</guid>
      <dc:creator>BenMoss</dc:creator>
      <dc:date>2018-03-15T18:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145252#M38754</link>
      <description>&lt;P&gt;"&lt;SPAN&gt;And that formula would be what?&amp;nbsp; The length of the characters is never the same."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a formula that can be used in a Formula tool that will remove all the characters to the right of the last "\" character (including the "\" character). This will only work for&amp;nbsp;the string segment that follow the last "\".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;left([String],length([String])-(findstring(reversestring([String]),"\")+1))&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;&lt;SPAN&gt;The dynamic solutions that&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1354"&gt;@ivoller&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/5143"&gt;@BenMoss&lt;/a&gt;&amp;nbsp;provided&amp;nbsp;will be required to dive further into the string.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 20:57:23 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145252#M38754</guid>
      <dc:creator>CharlieS</dc:creator>
      <dc:date>2018-03-15T20:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145569#M38755</link>
      <description>&lt;P&gt;I would suggest using a Regular Expression -- either through the RegEx tool in the Parse toolbox or with the Regex_Replace function in the Formula tool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In either case, the Regular Expression you could use would be:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;(.*)\\.*&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Formula tool this would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Regex_Replace([Field],"(.*)\\.*","$1")&lt;/PRE&gt;
&lt;P&gt;. = any character&lt;/P&gt;
&lt;P&gt;* = 0 or more times&lt;/P&gt;
&lt;P&gt;\\ is used because \ is a special character in RegEx, so to search for a 'literal' \, you have to 'escape' it, hence \\.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because the first .* is in brackets, it is a 'marked group' (e.g. the part you want to keep). You return the marked group using the $1 syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you had 2 marked groups, you would use $1 and $2, which returns your matched string reading from left to right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 17:48:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145569#M38755</guid>
      <dc:creator>tom_montpool</dc:creator>
      <dc:date>2018-03-16T17:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: removing text to the right of a character</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145728#M38756</link>
      <description>&lt;P&gt;Thanks, I used this one below and it seemed to work, just had to do a little clean up.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(.*\\(.*?))&lt;/PRE&gt;</description>
      <pubDate>Sat, 17 Mar 2018 20:17:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/removing-text-to-the-right-of-a-character/m-p/145728#M38756</guid>
      <dc:creator>bb213</dc:creator>
      <dc:date>2018-03-17T20:17:25Z</dc:date>
    </item>
  </channel>
</rss>

