<?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 Problem with PRXMATCH in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405139#M98524</link>
    <description>&lt;P&gt;I'm looking to extract&amp;nbsp;IBAN numbers from some SWIFT data I have, but my PRXMATCH function doesn't seem to be working, does anyone know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of the text field I'm searching in would be:&lt;/P&gt;&lt;P&gt;LV05AIZK1234567891234&amp;nbsp; COMPANY NAME ADDRESS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to find the starting character for the match to use in a substring extract, I'm using:&lt;/P&gt;&lt;P&gt;PRXMATCH('/\LV\d{2}\D{4}\d{13}\s/', COLUMN)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks right to me but I keep getting a result of zero where I can see this IBAN form in the data.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2017 09:52:07 GMT</pubDate>
    <dc:creator>ICL1986</dc:creator>
    <dc:date>2017-10-18T09:52:07Z</dc:date>
    <item>
      <title>Problem with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405139#M98524</link>
      <description>&lt;P&gt;I'm looking to extract&amp;nbsp;IBAN numbers from some SWIFT data I have, but my PRXMATCH function doesn't seem to be working, does anyone know why?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of the text field I'm searching in would be:&lt;/P&gt;&lt;P&gt;LV05AIZK1234567891234&amp;nbsp; COMPANY NAME ADDRESS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to find the starting character for the match to use in a substring extract, I'm using:&lt;/P&gt;&lt;P&gt;PRXMATCH('/\LV\d{2}\D{4}\d{13}\s/', COLUMN)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This looks right to me but I keep getting a result of zero where I can see this IBAN form in the data.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 09:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405139#M98524</guid>
      <dc:creator>ICL1986</dc:creator>
      <dc:date>2017-10-18T09:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405148#M98526</link>
      <description>&lt;P&gt;Would not scan(string,1," ") not work?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:20:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405148#M98526</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-18T10:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405149#M98527</link>
      <description>&lt;P&gt;That's a much neater solution for this particular problem thanks. For instances where the IBAN can potentially be anywhere in the string, can you think what's wrong the the PRXPARSE statement?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405149#M98527</guid>
      <dc:creator>ICL1986</dc:creator>
      <dc:date>2017-10-18T10:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405153#M98529</link>
      <description>&lt;P&gt;Well, I am not familiar with Perl so much, so will let others comment on that.&amp;nbsp; If it always starts with "LV" and length 21 which your regex seems to indicate then:&lt;/P&gt;
&lt;PRE&gt;want=substr(thestring,index(thestring,"LV"),21);&lt;/PRE&gt;
&lt;P&gt;So find LV in the string, and then substr out 21 characters from there.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405153#M98529</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-10-18T10:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405154#M98530</link>
      <description>&lt;P&gt;Perfect, thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405154#M98530</guid>
      <dc:creator>ICL1986</dc:creator>
      <dc:date>2017-10-18T10:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405156#M98531</link>
      <description>&lt;P&gt;This seemes to work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data one;&lt;BR /&gt; length iban $32 column $200;&lt;BR /&gt; column = 'One IBAN Number: LV05AIZK1234567891234 COMPANY NAME ADDRESS';&lt;BR /&gt; pos = PRXMATCH('/LV\d{2}\D{4}\d{13}/', COLUMN);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I removed the first \ and the trailing \s.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405156#M98531</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2017-10-18T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with PRXMATCH</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405248#M98563</link>
      <description>&lt;P&gt;Yes, this works now thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-PRXMATCH/m-p/405248#M98563</guid>
      <dc:creator>ICL1986</dc:creator>
      <dc:date>2017-10-18T15:15:39Z</dc:date>
    </item>
  </channel>
</rss>

