<?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: Clean up the phone number in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298077#M51978</link>
    <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is a little mistake in your regex: a ( or a ) is missing but I cannot see where :(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wished I could write regex!!&lt;/P&gt;&lt;P&gt;If you have any tutorial to advise, please do so! :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Myriam&lt;/P&gt;</description>
    <pubDate>Mon, 03 Sep 2018 11:59:47 GMT</pubDate>
    <dc:creator>msantoso</dc:creator>
    <dc:date>2018-09-03T11:59:47Z</dc:date>
    <item>
      <title>Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298049#M51967</link>
      <description>&lt;P&gt;hi everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to clean up a phone number column which contains phone numbers but not only! :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for the following cases, I need some help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- the name of the contact is preceeding the phone number. The length of the name is always different. the only similar case is that the phone number is preceeded with a blank space.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ex: Ms Marple 0176/123456789&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- two phone numbers in the same cell separated with a dash or a single letter&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your help&lt;/P&gt;&lt;P&gt;Myriam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 09:11:42 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298049#M51967</guid>
      <dc:creator>msantoso</dc:creator>
      <dc:date>2018-09-03T09:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298058#M51969</link>
      <description>&lt;P&gt;Hi Myriam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A regular expression (Regex), like this should do the trick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phone number parse.png" style="width: 906px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/42088i62FD5EAE62EBFD02/image-size/large?v=v2&amp;amp;px=999" role="button" title="phone number parse.png" alt="phone number parse.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 09:42:45 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298058#M51969</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2018-09-03T09:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298059#M51970</link>
      <description>&lt;P&gt;Sorry, typo in the regex. It should look like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(.+\s)(\d+)[/\s](\d+)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 09:48:39 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298059#M51970</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2018-09-03T09:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298073#M51975</link>
      <description>&lt;P&gt;One more correction - I misread the original post, if the numbers are separated by a '/' or a letter (not a space), the regex should look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(.+\s)(\d+)[/[:alpha:]](\d+)&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:51:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298073#M51975</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2018-09-03T11:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298077#M51978</link>
      <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;there is a little mistake in your regex: a ( or a ) is missing but I cannot see where :(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wished I could write regex!!&lt;/P&gt;&lt;P&gt;If you have any tutorial to advise, please do so! :)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;Myriam&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 11:59:47 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298077#M51978</guid>
      <dc:creator>msantoso</dc:creator>
      <dc:date>2018-09-03T11:59:47Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298082#M51980</link>
      <description>&lt;P&gt;Hi Myriam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached is the Alteryx workflow. With the Regex parse tool, using the parse Output method I created 3 columns (each set of brackets represent a column). The logic works like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(.+\s)&amp;nbsp; .+ means one or more of any character and \s is a space, so if you put them together it's a string of characters that ends in a space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(\d+) means a sequence of one or more numbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your description, we want to exclude the separator character between the 2 numbers which can be a / or a letter, so you write that like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[/[:alpha:]]&amp;nbsp; - the outer [] represents a set which is either a / or a letter which in this case is represented by&amp;nbsp;[:alpha:]. Since there are no (), we're telling the parse tool to find this but not to parse it to a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, we want the 2nd number parsed, which is done by (\d+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are some great tutorials and training material on the Alteryx community regarding regex (just type in regular expressions in the community search bar), and the down arrow on the right hand side of the regular expression input window expands to a list of regex commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The best thing to do is to play around with this yourself and you'll figure it out in no time.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 12:17:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298082#M51980</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2018-09-03T12:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298099#M51986</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot for this regex.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This regex is splitting the filed into 3 parts&amp;nbsp;&lt;/P&gt;&lt;P&gt;(i) it splits the name of the contact&lt;/P&gt;&lt;P&gt;(ii) then it splits the digits before the /&lt;/P&gt;&lt;P&gt;(iii) and copies the ending digits into the last field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So that is fine when the content is "Ms Marple 0176/123456789"&lt;/P&gt;&lt;P&gt;but when the cell contains 2 phone numbers separated with a letter, then the regex is putting the first phone number + the letter into RegexOut1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I manage to have the regex working only when the cell contains a name?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;myriam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 15:55:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298099#M51986</guid>
      <dc:creator>msantoso</dc:creator>
      <dc:date>2018-09-03T15:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298109#M51992</link>
      <description>&lt;P&gt;Hi Myriam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't get the same problem where the letter is part of RegExOut1 - please see below. Could your data&amp;nbsp;contain something else in between the 2 numbers?&amp;nbsp;In the formula tool you can use Regex_Match to test if the string starts with a name and based on the result, go one of 2 ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please find workflow attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phone number parse.png" style="width: 635px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/42098i8FA45299C33A6027/image-size/large?v=v2&amp;amp;px=999" role="button" title="phone number parse.png" alt="phone number parse.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Sep 2018 16:33:25 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298109#M51992</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2018-09-03T16:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298296#M52064</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you so much for this recipe. It works for almost all the use cases I have in my file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the strings that are still annoying me are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0162/2870461 o. 0173/6456482&lt;/P&gt;&lt;P&gt;09071-54111 oder 0172/2470400&lt;/P&gt;&lt;P&gt;0151/12139881 - 0170/2257314&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in these 3 cases I only retreive the second phone number, since the first one is considered as a name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;myriam&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 15:31:00 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298296#M52064</guid>
      <dc:creator>msantoso</dc:creator>
      <dc:date>2018-09-04T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298319#M52074</link>
      <description>&lt;P&gt;For those 3 strings I would use a regex like this:&amp;nbsp;&amp;nbsp;(\d+)[/-](\d+)\s.+\s(\d+)[/[:alpha:]](\d+)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new workflow then looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phone number parse.png" style="width: 999px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/42134i5DCC9786D19BA56B/image-size/large?v=v2&amp;amp;px=999" role="button" title="phone number parse.png" alt="phone number parse.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 16:14:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298319#M52074</guid>
      <dc:creator>DavidP</dc:creator>
      <dc:date>2018-09-04T16:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298383#M52092</link>
      <description>&lt;P&gt;dear David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;you're a real magician!&lt;/P&gt;&lt;P&gt;thank you for this recipe and for this teaching lesson!&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;myriam&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 18:33:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/298383#M52092</guid>
      <dc:creator>msantoso</dc:creator>
      <dc:date>2018-09-04T18:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Clean up the phone number</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/300299#M52604</link>
      <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry for my late answer...&lt;/P&gt;&lt;P&gt;thanks a million times! this recipe is working great !&lt;/P&gt;&lt;P&gt;myriam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 06:34:12 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Clean-up-the-phone-number/m-p/300299#M52604</guid>
      <dc:creator>msantoso</dc:creator>
      <dc:date>2018-09-10T06:34:12Z</dc:date>
    </item>
  </channel>
</rss>

