<?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 Reg Expression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272798#M54297</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to define 'a' that matches the following codes by using PRXPARSE: V250-V2509; V251-V2513; V254-V2549; V255-V259&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a= prxparse("/\b(V25[0-9]\b|\b(V250[1-9]\b|\b(V251[1-3])\b|\b(V254[0-9])\b/");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This generates an error message saying:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ERROR: Unmatched ( before HERE mark in regex m/\b(V25[0-9]\b|\b( &amp;lt;&amp;lt; HERE&amp;nbsp;V250[1-9]\b|\b(V251[1-3])\b|\b(V254[0-9])\b/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me resolving this issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time!&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 17:29:34 GMT</pubDate>
    <dc:creator>jhs2171</dc:creator>
    <dc:date>2016-05-24T17:29:34Z</dc:date>
    <item>
      <title>Perl Reg Expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272798#M54297</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to define 'a' that matches the following codes by using PRXPARSE: V250-V2509; V251-V2513; V254-V2549; V255-V259&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;a= prxparse("/\b(V25[0-9]\b|\b(V250[1-9]\b|\b(V251[1-3])\b|\b(V254[0-9])\b/");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This generates an error message saying:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ERROR: Unmatched ( before HERE mark in regex m/\b(V25[0-9]\b|\b( &amp;lt;&amp;lt; HERE&amp;nbsp;V250[1-9]\b|\b(V251[1-3])\b|\b(V254[0-9])\b/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me resolving this issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your time!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 17:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272798#M54297</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-05-24T17:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Reg Expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272810#M54298</link>
      <description>&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;a= prxparse("/\b(V250[1-9]?|V251[1-3]?|V254[1-9]?|V25[5-9])\b/");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 18:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272810#M54298</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-24T18:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Reg Expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272821#M54300</link>
      <description>&lt;P&gt;Thank you so much for the quick reply! I just tried what you suggested and it ran! Quick question. So I've noticed that you tweaked a few things- you changed the order of the sequence (4 digits -&amp;gt; 3 digits instead of 3 digits -&amp;gt;4 digits) and I see question marks between [ ] and&amp;nbsp;&lt;SPAN&gt;|. I am guessing the question mark did the trick?!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You also changed the range from 0-9 to 1-9 etc. but I am guessing that's just a typo as it is irrevant to the question I was asking. Thanks so much!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 18:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272821#M54300</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-05-24T18:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Reg Expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272831#M54301</link>
      <description>&lt;P&gt;? means none or one match.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;V250[1-9]? will match V250, V2501, V2502... V2509&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;V250[0-9]? will match V250, V2500, V2501, V2502 ... V2509&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Your pick.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 18:35:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272831#M54301</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-05-24T18:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Perl Reg Expression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272842#M54304</link>
      <description>&lt;P&gt;Oh I see. I noticed that the last one (V25[4-9]) does not have ? at the end, but I tried both w. and wo it and they returned the same result- &amp;nbsp;So what was the prob with my code then? I thought it was something to do w. 'V'. &amp;nbsp; Thanks again for your help!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 18:47:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Perl-Reg-Expression/m-p/272842#M54304</guid>
      <dc:creator>jhs2171</dc:creator>
      <dc:date>2016-05-24T18:47:52Z</dc:date>
    </item>
  </channel>
</rss>

