<?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: regular expression for beginning of a string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160780#M31288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is the extra '\', it acts as an escape character. The pattern should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;fnd=prxmatch('/^&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;A?&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\d/',Test_Result_Number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I hadn't noticed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2014 21:07:30 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-05-15T21:07:30Z</dc:date>
    <item>
      <title>regular expression for beginning of a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160777#M31285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems to work for finding strings with numbers at the beginning.&lt;BR /&gt;However, I'm not sure how to add in the requirement that string may also begin with the letter A.&lt;/P&gt;&lt;P&gt;Does anyone know how to add this requirement to the regular expression below?&lt;/P&gt;&lt;P&gt;fnd=prxmatch('/^\d\/',Test_Result_Number)&lt;/P&gt;&lt;P&gt;So, I want to find 102, 9B101, A101, but I don't want Z10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 19:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160777#M31285</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2014-05-15T19:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression for beginning of a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160778#M31286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;fnd=prxmatch('/^&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;A?&lt;/SPAN&gt;\d\/',Test_Result_Number) : A? matches the letter A 0 or 1 time. - PG&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 19:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160778#M31286</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-05-15T19:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression for beginning of a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160779#M31287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PG,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how resolve this error?&lt;/P&gt;&lt;P&gt;ERROR: Closing delimiter "/" not found after regular expression "/^A?\d\/".&lt;/P&gt;&lt;P&gt;ERROR: The regular expression passed to the function PRXMATCH contains a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 20:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160779#M31287</guid>
      <dc:creator>gzr2mz39</dc:creator>
      <dc:date>2014-05-15T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: regular expression for beginning of a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160780#M31288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is the extra '\', it acts as an escape character. The pattern should be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;fnd=prxmatch('/^&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;A?&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;\d/',Test_Result_Number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I hadn't noticed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 21:07:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/regular-expression-for-beginning-of-a-string/m-p/160780#M31288</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-05-15T21:07:30Z</dc:date>
    </item>
  </channel>
</rss>

