<?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: Perl regular expression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891547#M352201</link>
    <description>What are you trying to do?</description>
    <pubDate>Tue, 29 Aug 2023 15:55:12 GMT</pubDate>
    <dc:creator>actuarial</dc:creator>
    <dc:date>2023-08-29T15:55:12Z</dc:date>
    <item>
      <title>Perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891544#M352199</link>
      <description>&lt;P&gt;How do i use perl regular expression to pick up -00- in the 4th and 5th position of an ssn number?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 15:32:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891544#M352199</guid>
      <dc:creator>Lauren22</dc:creator>
      <dc:date>2023-08-29T15:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891546#M352200</link>
      <description>&lt;P&gt;'/(\d{3})-(00)-(\d{4})/'&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried the code above but didn't work... thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 15:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891546#M352200</guid>
      <dc:creator>Lauren22</dc:creator>
      <dc:date>2023-08-29T15:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891547#M352201</link>
      <description>What are you trying to do?</description>
      <pubDate>Tue, 29 Aug 2023 15:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891547#M352201</guid>
      <dc:creator>actuarial</dc:creator>
      <dc:date>2023-08-29T15:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891548#M352202</link>
      <description>&lt;P&gt;Am trying to clean a data set with fake ssn like this one 000-00-0000, most of the fake one have 00 in the 4 and 5th position or the 0000 as the last four digits.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 15:57:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891548#M352202</guid>
      <dc:creator>Lauren22</dc:creator>
      <dc:date>2023-08-29T15:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Perl regular expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891551#M352203</link>
      <description>&lt;P&gt;One thing that you may want to check is if the value is actually a character value. SAS has a SSN format that displays numbers intended to be SSN with dashes and may make you think it is character when actually numeric. The regular expressions tend not work as expected on actual numeric values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If character I might look to SCAN as well&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;if scan(variable,2,'-')='00' or scan(variable,3,'-')='0000' then &amp;lt;whatever when found&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 16:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression/m-p/891551#M352203</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-29T16:16:40Z</dc:date>
    </item>
  </channel>
</rss>

