<?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 Extracting the string after the numeric values from a single variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685931#M208069</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to extract the strings after a certain number of numerics. Although the problem is that the number of numerics is inconsistent. How do I get the string after the numbers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, my data is the following:&lt;/P&gt;&lt;P&gt;1234567aaa@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;12345bbb@mail.com&lt;/P&gt;&lt;P&gt;123456789ccc@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want my output to be:&lt;/P&gt;&lt;P&gt;aaa@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;bbb@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;ccc@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Sep 2020 03:42:01 GMT</pubDate>
    <dc:creator>kristindlcrz</dc:creator>
    <dc:date>2020-09-23T03:42:01Z</dc:date>
    <item>
      <title>Extracting the string after the numeric values from a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685931#M208069</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to extract the strings after a certain number of numerics. Although the problem is that the number of numerics is inconsistent. How do I get the string after the numbers?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, my data is the following:&lt;/P&gt;&lt;P&gt;1234567aaa@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;12345bbb@mail.com&lt;/P&gt;&lt;P&gt;123456789ccc@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I want my output to be:&lt;/P&gt;&lt;P&gt;aaa@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;bbb@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;ccc@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this possible in SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 03:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685931#M208069</guid>
      <dc:creator>kristindlcrz</dc:creator>
      <dc:date>2020-09-23T03:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the string after the numeric values from a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685934#M208071</link>
      <description>&lt;P&gt;Also, the string could be like these:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;12345ddd23@mail.com&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to collect all of the characters after the numeric so the desired output would be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ddd23@mail.com&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685934#M208071</guid>
      <dc:creator>kristindlcrz</dc:creator>
      <dc:date>2020-09-23T04:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the string after the numeric values from a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685936#M208072</link>
      <description>&lt;P&gt;This is a quick sample.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input email:$30.;
datalines;
1234567aaa@mail.com 
12345bbb@mail.com
123456789ccc@mail.com 
12345ddd23@mail.com  
;
run;

data want;
	set have;
	email_out=prxchange("s/(\d+)(\w+@\w+.\w+)/$2/i",-1,email);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:21:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685936#M208072</guid>
      <dc:creator>hhinohar</dc:creator>
      <dc:date>2020-09-23T04:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the string after the numeric values from a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685937#M208073</link>
      <description>Will this also cover the emails that have numbers in them?&lt;BR /&gt;&lt;BR /&gt;Such as if the data is 123aaa01@mail.com, the output will still be aaa01@mail.com?</description>
      <pubDate>Wed, 23 Sep 2020 04:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685937#M208073</guid>
      <dc:creator>kristindlcrz</dc:creator>
      <dc:date>2020-09-23T04:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the string after the numeric values from a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685938#M208074</link>
      <description>&lt;P&gt;Yes it does on my SAS Studio.&lt;/P&gt;
&lt;P&gt;You're welcome to try.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685938#M208074</guid>
      <dc:creator>hhinohar</dc:creator>
      <dc:date>2020-09-23T04:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the string after the numeric values from a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685939#M208075</link>
      <description>Thank you so much hhinohar!</description>
      <pubDate>Wed, 23 Sep 2020 04:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685939#M208075</guid>
      <dc:creator>kristindlcrz</dc:creator>
      <dc:date>2020-09-23T04:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting the string after the numeric values from a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685944#M208077</link>
      <description>&lt;P&gt;Another solution without using a regular expression:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  email_sub = substr(email, notdigit(email));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Sep 2020 04:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extracting-the-string-after-the-numeric-values-from-a-single/m-p/685944#M208077</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-09-23T04:50:17Z</dc:date>
    </item>
  </channel>
</rss>

