<?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: Elegantly remove all ASCII characters outside the range 32 -126 in Alteryx Designer Desktop Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/470839#M93473</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/97929"&gt;@Jordken&lt;/a&gt;&amp;nbsp;Change the expression to read as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regex_replace([_CurrentField_],"[^\xA,\xD,\x20-\x7e]+",'')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[_CurrentField_] being whatever your field name is if you are using the formula tool and not the multi field tool&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2019 10:31:16 GMT</pubDate>
    <dc:creator>BrettMRP</dc:creator>
    <dc:date>2019-10-01T10:31:16Z</dc:date>
    <item>
      <title>Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1113#M2402</link>
      <description>Hello Artisans,&lt;BR /&gt;&lt;BR /&gt;I'm working on a module that includes a geocoder tool. I'm running into an issue in which the data the users are submitting to the module are copied from a web page and sometimes include weird characters (e.g. ASCII 160). This causes the geocoder problems. And by problems, I mean that the geocoder can only find the zip code when without the odd characters, it can find the address.&lt;BR /&gt;&lt;BR /&gt;What I'm looking for is the most elegant way to remove any characters from a text value that fall outside of the ASCII range of&amp;nbsp;32 -126. Any characters inside that range *shouldn't* cause the geocoder problems.&lt;BR /&gt;&lt;BR /&gt;Extra cool points to anyone from Alteryx that will fix incorporate this fix into the Address tool. :-)&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;John Hollingsworth</description>
      <pubDate>Thu, 24 May 2018 01:25:14 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1113#M2402</guid>
      <dc:creator>jhollingsworth</dc:creator>
      <dc:date>2018-05-24T01:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1114#M2403</link>
      <description>&lt;P&gt;I am definately in need of some extra cool points, so here is my most elegant way to remove ASCII characters outside of the range of 32-126. &amp;nbsp;I was able to remove the undesired characters using RegEx (you can use the RegEx tool or the Formula tool for this) using the following expression:&lt;/P&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;BR /&gt; &lt;STRONG&gt;[^x20-x7e]+&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Everything within the brackets represents a specific set of characters to match. &amp;nbsp;The &lt;STRONG&gt;x&lt;/STRONG&gt; switch matches an ASCII charater using hexidecimal representation. &amp;nbsp;&lt;STRONG&gt;x20-x7e&lt;/STRONG&gt; translates to ASCII characters 32-126. &amp;nbsp;The &lt;STRONG&gt;^&lt;/STRONG&gt; preceeding the range indicates that we want to match anything NOT in the specified range. &amp;nbsp;The &lt;STRONG&gt;+&lt;/STRONG&gt; outside the brackets indicates that we want to search for this pattern in our string 1 or more times.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Using the RegEx tool:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://community.alteryx.com/t5/image/serverpage/image-id/431iF00A18E19FB3C10A/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="rtaImage.jpg" title="rtaImage.jpg" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Using the Formula tool:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://community.alteryx.com/t5/image/serverpage/image-id/432i4E5010190EE4803F/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="rtaImage (1).jpg" title="rtaImage (1).jpg" /&gt;&lt;BR /&gt;&lt;BR /&gt;Let me know if you have any questions.&lt;BR /&gt;&lt;BR /&gt;Todd Williamson&lt;BR /&gt;Client Services Rep&lt;BR /&gt;Cool Points: 7&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2015 15:51:49 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1114#M2403</guid>
      <dc:creator>ToddW</dc:creator>
      <dc:date>2015-09-23T15:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1115#M2404</link>
      <description>Outstanding! That was exactly what I needed.&lt;BR /&gt;&lt;BR /&gt;Whenever someone uses RegEx I think of &lt;A href="https://xkcd.com/208/" target="_blank"&gt;this&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Thanks Todd!</description>
      <pubDate>Fri, 20 Sep 2013 04:01:58 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1115#M2404</guid>
      <dc:creator>jhollingsworth</dc:creator>
      <dc:date>2013-09-20T04:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1116#M2405</link>
      <description>Glad it worked out! &amp;nbsp;Since posting my last response, a couple of my colleagues shared a simpler expression that accomplishes the same task:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;[^ -~]&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Apparently there is no need to use hexidecimal values for the ASCII charaters - you can literally type them in (please note there is a space between the carat^ and the dash-.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: rgb(68, 68, 68); font-family: sans-serif; font-size: 13px;"&gt;Todd Williamson&lt;/SPAN&gt;&lt;BR style="color: rgb(68, 68, 68); font-family: sans-serif; font-size: 13px;" /&gt;
&lt;SPAN style="color: rgb(68, 68, 68); font-family: sans-serif; font-size: 13px;"&gt;Client Services Rep&lt;/SPAN&gt;&lt;BR style="color: rgb(68, 68, 68); font-family: sans-serif; font-size: 13px;" /&gt;
&lt;EM&gt;&lt;FONT color="#444444" face="sans-serif" size="2"&gt;&lt;SPAN style=""&gt;"Everybody stand back! &amp;nbsp;I know RegEx!"&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/EM&gt;</description>
      <pubDate>Fri, 20 Sep 2013 04:42:13 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1116#M2405</guid>
      <dc:creator>ToddW</dc:creator>
      <dc:date>2013-09-20T04:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/10742#M2406</link>
      <description>&lt;P&gt;Todd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a little late with this...&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.alteryx.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been searching for an &amp;nbsp;answer and your solution worked great! &amp;nbsp;Thank you for the detailed post and for following up with a more elegant solution to your initial response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sd&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 04:43:05 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/10742#M2406</guid>
      <dc:creator>sd</dc:creator>
      <dc:date>2016-01-08T04:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/72464#M2407</link>
      <description>&lt;P&gt;Don't forget the backslashes in the expression, which are shown in the graphic of the&amp;nbsp;RegEx box but not in the accompanying text.&amp;nbsp;&lt;STRONG&gt;[^\x20-\x7e]+&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 12:27:52 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/72464#M2407</guid>
      <dc:creator>Inactive User</dc:creator>
      <dc:date>2017-07-21T12:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/319200#M58117</link>
      <description>&lt;P&gt;You Sir, are a star.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 15:38:30 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/319200#M58117</guid>
      <dc:creator>NotQuiteClueless</dc:creator>
      <dc:date>2018-11-01T15:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/319228#M58126</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/80"&gt;@ToddW&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I like your expression (having used it myself), but wanted to&amp;nbsp;describe the&amp;nbsp;request in English&amp;nbsp;and to offer&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/498"&gt;@jhollingsworth&lt;/a&gt;&amp;nbsp;an alternative solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Remove any characters from the incoming field that are outside of the range of ascii values from "space" to "~".&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This expression can be written in a form that more closely matches these requirements as:&lt;/P&gt;&lt;PRE&gt;REGEX_Replace([Field1], "[^ -~]", '$1')&lt;/PRE&gt;&lt;P&gt;[...] is the set of values&lt;/P&gt;&lt;P&gt;[^..] is then, the values not in the set&lt;/P&gt;&lt;P&gt;[^ -~] uses (space) followed by a dash followed by a tilde is then, the values not in the range of (space) to ~ (tilde)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:06:58 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/319228#M58126</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2018-11-01T16:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/319245#M58134</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/80"&gt;@ToddW&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.... just read a latter post showing the same.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:26:14 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/319245#M58134</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2018-11-01T16:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/470538#M93399</link>
      <description>&lt;P&gt;This worked great for the most part:&amp;nbsp;[^ -~]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I think I want to keep the carriage returns (13) and new line&amp;nbsp; (10) characters as well. I'm still trying to figure this regex out, and I'm not getting it. Any help?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 18:23:17 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/470538#M93399</guid>
      <dc:creator>Jordken</dc:creator>
      <dc:date>2019-09-30T18:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/470839#M93473</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/97929"&gt;@Jordken&lt;/a&gt;&amp;nbsp;Change the expression to read as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regex_replace([_CurrentField_],"[^\xA,\xD,\x20-\x7e]+",'')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[_CurrentField_] being whatever your field name is if you are using the formula tool and not the multi field tool&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 10:31:16 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/470839#M93473</guid>
      <dc:creator>BrettMRP</dc:creator>
      <dc:date>2019-10-01T10:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/470855#M93480</link>
      <description>[ -~]&lt;BR /&gt;&lt;BR /&gt;That's the range as elegantly as possible. &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 01 Oct 2019 11:13:29 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/470855#M93480</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2019-10-01T11:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/957902#M235943</link>
      <description>&lt;P&gt;Is there a way to do this but return if the field had one of the untranslatable characters? I'm trying to identify them the fields and flag them with a 1 if they have a bad character.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:49:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/957902#M235943</guid>
      <dc:creator>SideOfRanch</dc:creator>
      <dc:date>2022-06-23T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/957909#M235946</link>
      <description>&lt;P&gt;MIN(Regex_Countmatches([Garbage Data],"^&lt;SPAN&gt;[ -~]"),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;That might help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 15:02:55 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/957909#M235946</guid>
      <dc:creator>MarqueeCrew</dc:creator>
      <dc:date>2022-06-23T15:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1320506#M329413</link>
      <description>&lt;P&gt;Adding another solution to the conversation.&amp;nbsp;&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="solution.PNG" style="width: 494px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/375329i0DF861835D756ECF/image-size/large?v=v2&amp;amp;px=999" role="button" title="solution.PNG" alt="solution.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 00:48:04 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1320506#M329413</guid>
      <dc:creator>AGilbert</dc:creator>
      <dc:date>2024-09-20T00:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Elegantly remove all ASCII characters outside the range 32 -126</title>
      <link>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1351490#M335604</link>
      <description>&lt;P&gt;Indeed elegant and something I will likely be using regularly to remove 'junk' and mystery hidden characters from data coming from different platforms.&amp;nbsp; Thank you!&lt;BR /&gt;You deserve all the&amp;nbsp;EXTRA COOL points Todd!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Dec 2024 05:28:39 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Designer-Desktop-Discussions/Elegantly-remove-all-ASCII-characters-outside-the-range-32-126/m-p/1351490#M335604</guid>
      <dc:creator>3I_ATLAS</dc:creator>
      <dc:date>2024-12-18T05:28:39Z</dc:date>
    </item>
  </channel>
</rss>

