<?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: string starts with number or letter in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628093#M20639</link>
    <description>Thanks, it worked for me.</description>
    <pubDate>Fri, 28 Feb 2020 03:29:41 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2020-02-28T03:29:41Z</dc:date>
    <item>
      <title>string starts with number or letter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628073#M20637</link>
      <description>&lt;P&gt;I need to know the observations where var1 starts with a number and var2 starts with a letter. Can someone please help me with the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my sample data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA have;
INPUT var1 $10. var2 $10.;
DATALINES;
A153C254	BBF
3 Cuort		5nng
4hhg		r4ee5
B124 		CC8	
0564		1DD	
15D48 		FF	 
na 3N2	
w853	    55K
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 23:45:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628073#M20637</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2020-02-27T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: string starts with number or letter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628080#M20638</link>
      <description>&lt;P&gt;What do you expect the result to look like when digit or letter is found in the first position?&lt;/P&gt;
&lt;P&gt;The functions ANYDIGIT, ANYLOWER&amp;nbsp;or ANYUPPER may help depending on your desired output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If ANYDIGIT(var1) = 1 then var1 starts with a digit for example.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 00:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628080#M20638</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-28T00:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: string starts with number or letter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628093#M20639</link>
      <description>Thanks, it worked for me.</description>
      <pubDate>Fri, 28 Feb 2020 03:29:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628093#M20639</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2020-02-28T03:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: string starts with number or letter</title>
      <link>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628135#M20642</link>
      <description>&lt;P&gt;Alternatively..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA have;
INPUT var1 $ 1-8 var2 $ 10-14;
DATALINES;
A153C254 BBF  
3 Cuort  5nng 
4hhg     r4ee5
B124     CC8  
0564     1DD  
15D48    FF   
na 3N2        
w853     55K  
;

data want;
    set have;
    if prxmatch('/^\d.*/', var1) &amp;amp; 
       prxmatch('/^[a-zA-Z].*/', var2);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 08:07:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/string-starts-with-number-or-letter/m-p/628135#M20642</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-28T08:07:24Z</dc:date>
    </item>
  </channel>
</rss>

