<?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: How to remove strings which contain numbers? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726699#M225847</link>
    <description>&lt;P&gt;Try regex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input string $10.;
datalines;
asd123ffgg
sdffggghhj
34fggghhhh
dfvd
dvrfgbbfe1
;
run;


data want;
set have;
	pattern="s/\d+/$1/";
	patternid=prxparse(pattern);

	if not prxmatch(patternid,string) then do;
		output;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 16 Mar 2021 10:28:27 GMT</pubDate>
    <dc:creator>rudfaden</dc:creator>
    <dc:date>2021-03-16T10:28:27Z</dc:date>
    <item>
      <title>How to remove strings which contain numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726691#M225837</link>
      <description>I have a list of strings which contain both alphabets and numericals.&lt;BR /&gt;I want to keep only those strings which contain only alphabets or a combination of alphabets and numerics. I want to remove strings which contain only numericals. How do I achieve this?</description>
      <pubDate>Tue, 16 Mar 2021 10:12:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726691#M225837</guid>
      <dc:creator>Shradha1</dc:creator>
      <dc:date>2021-03-16T10:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove strings which contain numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726696#M225838</link>
      <description>&lt;P&gt;Use the &lt;A href="https://documentation.sas.com/?cdcId=vdmmlcdc&amp;amp;cdcVersion=8.11&amp;amp;docsetId=ds2ref&amp;amp;docsetTarget=p1p4rriwlhgc25n1ah8mh55eypkw.htm&amp;amp;locale=en" target="_self"&gt;Anyalpha Function&lt;/A&gt; like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input s $;
datalines;
12345 
abc12
12abc
23456
;

data want;
   set have;
   if anyalpha(s);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Mar 2021 10:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726696#M225838</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-03-16T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove strings which contain numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726697#M225839</link>
      <description>Provide data</description>
      <pubDate>Tue, 16 Mar 2021 10:19:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726697#M225839</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-03-16T10:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove strings which contain numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726698#M225840</link>
      <description>&lt;P&gt;Use the ANYDIGIT function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input string $10.;
datalines;
abc
defg
abc12de
;

data want;
set have;
where anydigit(string) = 0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Mar 2021 10:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726698#M225840</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-03-16T10:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove strings which contain numbers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726699#M225847</link>
      <description>&lt;P&gt;Try regex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input string $10.;
datalines;
asd123ffgg
sdffggghhj
34fggghhhh
dfvd
dvrfgbbfe1
;
run;


data want;
set have;
	pattern="s/\d+/$1/";
	patternid=prxparse(pattern);

	if not prxmatch(patternid,string) then do;
		output;
	end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Mar 2021 10:28:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-strings-which-contain-numbers/m-p/726699#M225847</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2021-03-16T10:28:27Z</dc:date>
    </item>
  </channel>
</rss>

