<?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 Perl regular expression HELP in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression-HELP/m-p/415682#M101978</link>
    <description>I have a table in SAS with ~15,000 peoples' business name and PO Box with their ID number. I need to match on the PO Box in an Excel sheet, but in the SAS table PO Box is written all sorts of ways i.e., P O Box, P.O. Box POBox, P. Box, etc. I found a SUGI paper where someone used Perl reg expressions to reformat all to the same P O Box format. I used this code setting my SAS table where in the paper they used a datalines with just a few lines of code. What I wrote works (tried it for 6 ID numbers); however, it is SO slow. It took 5 minutes to match 6 and I need to do this for 15,000...is there a better faster way to do this? Please help! What I have is &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Data pobox_fix;&lt;BR /&gt;Set POBox; &lt;BR /&gt;Pochg=prxchange("s/P?\s*\.*\s*O?\s*\.*\s*BOX\s*\.*\s*/P O BOX /i",-1,address);&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I'm new to these Perl reg expressions but I have read several papers at this point.</description>
    <pubDate>Wed, 22 Nov 2017 21:53:14 GMT</pubDate>
    <dc:creator>missmeliss22</dc:creator>
    <dc:date>2017-11-22T21:53:14Z</dc:date>
    <item>
      <title>Perl regular expression HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression-HELP/m-p/415682#M101978</link>
      <description>I have a table in SAS with ~15,000 peoples' business name and PO Box with their ID number. I need to match on the PO Box in an Excel sheet, but in the SAS table PO Box is written all sorts of ways i.e., P O Box, P.O. Box POBox, P. Box, etc. I found a SUGI paper where someone used Perl reg expressions to reformat all to the same P O Box format. I used this code setting my SAS table where in the paper they used a datalines with just a few lines of code. What I wrote works (tried it for 6 ID numbers); however, it is SO slow. It took 5 minutes to match 6 and I need to do this for 15,000...is there a better faster way to do this? Please help! What I have is &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Data pobox_fix;&lt;BR /&gt;Set POBox; &lt;BR /&gt;Pochg=prxchange("s/P?\s*\.*\s*O?\s*\.*\s*BOX\s*\.*\s*/P O BOX /i",-1,address);&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;I'm new to these Perl reg expressions but I have read several papers at this point.</description>
      <pubDate>Wed, 22 Nov 2017 21:53:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression-HELP/m-p/415682#M101978</guid>
      <dc:creator>missmeliss22</dc:creator>
      <dc:date>2017-11-22T21:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Perl regular expression HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression-HELP/m-p/415686#M101980</link>
      <description>** found reference on page 9 of the NESUG paper at &lt;A href="http://www.lexjansen.com/nesug/nesug12/bb/bb17.pdf" target="_blank"&gt;www.lexjansen.com/nesug/nesug12/bb/bb17.pdf&lt;/A&gt;</description>
      <pubDate>Wed, 22 Nov 2017 21:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression-HELP/m-p/415686#M101980</guid>
      <dc:creator>missmeliss22</dc:creator>
      <dc:date>2017-11-22T21:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Perl regular expression HELP</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression-HELP/m-p/415705#M101994</link>
      <description>&lt;P&gt;The time consuming part must be elsewhere unless address is a very very&amp;nbsp;long string. There is no particular reason for this expression to be slow.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2017 22:40:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-regular-expression-HELP/m-p/415705#M101994</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-22T22:40:26Z</dc:date>
    </item>
  </channel>
</rss>

