<?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 sas perl regular expression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49295#M13363</link>
    <description>in perl, i can do this, &lt;BR /&gt;
$a = "abcd1234";&lt;BR /&gt;
print $1 if $a=~/abcd(\d+)/;&lt;BR /&gt;
&lt;BR /&gt;
if the string is abcd1234, i try to get the number followed by abcd, the perl can automatically assign a variable that matched in the parenthsis, can SAS PRX function do this?

Message was edited by: siliconcreature</description>
    <pubDate>Wed, 13 Apr 2011 13:25:43 GMT</pubDate>
    <dc:creator>siliconcreature</dc:creator>
    <dc:date>2011-04-13T13:25:43Z</dc:date>
    <item>
      <title>sas perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49295#M13363</link>
      <description>in perl, i can do this, &lt;BR /&gt;
$a = "abcd1234";&lt;BR /&gt;
print $1 if $a=~/abcd(\d+)/;&lt;BR /&gt;
&lt;BR /&gt;
if the string is abcd1234, i try to get the number followed by abcd, the perl can automatically assign a variable that matched in the parenthsis, can SAS PRX function do this?

Message was edited by: siliconcreature</description>
      <pubDate>Wed, 13 Apr 2011 13:25:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49295#M13363</guid>
      <dc:creator>siliconcreature</dc:creator>
      <dc:date>2011-04-13T13:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: sas perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49296#M13364</link>
      <description>RTM!&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
PRXPOSN Function&lt;BR /&gt;
--------------------------------------------------------------------------------&lt;BR /&gt;
Returns a character string that contains the value for a capture buffer. &lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 13 Apr 2011 14:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49296#M13364</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-04-13T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: sas perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49297#M13365</link>
      <description>that will return abcd1234, assumed</description>
      <pubDate>Wed, 13 Apr 2011 18:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49297#M13365</guid>
      <dc:creator>siliconcreature</dc:creator>
      <dc:date>2011-04-13T18:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: sas perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49298#M13366</link>
      <description>sorry, you are right, i missread that section. thank you.</description>
      <pubDate>Wed, 13 Apr 2011 20:57:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sas-perl-regular-expression/m-p/49298#M13366</guid>
      <dc:creator>siliconcreature</dc:creator>
      <dc:date>2011-04-13T20:57:08Z</dc:date>
    </item>
  </channel>
</rss>

