<?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 SAS regex string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-regex-string/m-p/491680#M129010</link>
    <description>&lt;P&gt;I have a question on the below code.&lt;BR /&gt;Where it has \s\S\S$, is this looking for something like: " NJ$"? I have not seen \S$. Unless, this is an actual dollar sign in the string.&lt;/P&gt;&lt;P&gt;Also, in the ^.*(\s\S\S$).*$/$1. Is this looking at beginning of string for something like: " NJ$"? I'm not sure what the .*$/$1 is doing. I am new to regex in SAS.&lt;/P&gt;&lt;P&gt;Removed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 15:45:21 GMT</pubDate>
    <dc:creator>user112a2</dc:creator>
    <dc:date>2019-04-26T15:45:21Z</dc:date>
    <item>
      <title>SAS regex string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-regex-string/m-p/491680#M129010</link>
      <description>&lt;P&gt;I have a question on the below code.&lt;BR /&gt;Where it has \s\S\S$, is this looking for something like: " NJ$"? I have not seen \S$. Unless, this is an actual dollar sign in the string.&lt;/P&gt;&lt;P&gt;Also, in the ^.*(\s\S\S$).*$/$1. Is this looking at beginning of string for something like: " NJ$"? I'm not sure what the .*$/$1 is doing. I am new to regex in SAS.&lt;/P&gt;&lt;P&gt;Removed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 15:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-regex-string/m-p/491680#M129010</guid>
      <dc:creator>user112a2</dc:creator>
      <dc:date>2019-04-26T15:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS regex string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-regex-string/m-p/491810#M129079</link>
      <description>&lt;P&gt;$ matches the end of the string. I guess this is looking for strings that end with a space followed by two non-space characters. If match, then extract those two characters to string claim_state and remove them from the string. It could be done with:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if prxmatch('/\s\S\S$/', strip(claim_txn_merchant_clean)) then do;
    claim_temp = strip(claim_txn_merchant_clean);
    drop claim_temp;
    claim_state = substr(claim_temp, length((claim_temp)-1, 2);
    claim_txn_merchant_clean = substr(claim_temp, 1, length(claim_temp)-3);
    end;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Sep 2018 05:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-regex-string/m-p/491810#M129079</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-09-01T05:59:25Z</dc:date>
    </item>
  </channel>
</rss>

