<?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: Prxchange understanding in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Prxchange-understanding/m-p/828848#M327444</link>
    <description>&lt;P&gt;Unless&amp;nbsp;I&amp;nbsp;am mistaken,&lt;/P&gt;
&lt;P&gt;mat_nbr =&amp;nbsp;remove the Matched Pattern in variable NBR ,&amp;nbsp;the value of&amp;nbsp;&lt;EM class="xisDoc-userSuppliedValue"&gt;times&lt;/EM&gt;&amp;nbsp;is –1, then matching patterns continue to be replaced until the end of&amp;nbsp;&lt;EM class="xisDoc-userSuppliedValue"&gt;source&lt;/EM&gt;&amp;nbsp;is reached.&lt;/P&gt;
&lt;P&gt;Sequence: match all of the followings in order&lt;BR /&gt;BeginOfLine&lt;BR /&gt;CapturingGroup&lt;BR /&gt;GroupNumber:1&lt;BR /&gt;Repeat&lt;BR /&gt;0&lt;BR /&gt;zero or more times&lt;STRONG class="b4"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&amp;gt;&amp;gt;&amp;gt;&lt;STRONG&gt; remove Leading Zeros in the varible nbr&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;nbr = 0001 =&amp;gt; mat_nbr=1&lt;/P&gt;
&lt;P&gt;nbr= 001 01 =&amp;gt; mat_nbr=1 01&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 14:04:36 GMT</pubDate>
    <dc:creator>kelxxx</dc:creator>
    <dc:date>2022-08-16T14:04:36Z</dc:date>
    <item>
      <title>Prxchange understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxchange-understanding/m-p/828841#M327442</link>
      <description>&lt;P&gt;can someone help me understand this line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;MAT_NBR= prxchange('s/^(0*)//', -1,NBR);&lt;/PRE&gt;</description>
      <pubDate>Tue, 16 Aug 2022 13:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxchange-understanding/m-p/828841#M327442</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2022-08-16T13:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: Prxchange understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxchange-understanding/m-p/828848#M327444</link>
      <description>&lt;P&gt;Unless&amp;nbsp;I&amp;nbsp;am mistaken,&lt;/P&gt;
&lt;P&gt;mat_nbr =&amp;nbsp;remove the Matched Pattern in variable NBR ,&amp;nbsp;the value of&amp;nbsp;&lt;EM class="xisDoc-userSuppliedValue"&gt;times&lt;/EM&gt;&amp;nbsp;is –1, then matching patterns continue to be replaced until the end of&amp;nbsp;&lt;EM class="xisDoc-userSuppliedValue"&gt;source&lt;/EM&gt;&amp;nbsp;is reached.&lt;/P&gt;
&lt;P&gt;Sequence: match all of the followings in order&lt;BR /&gt;BeginOfLine&lt;BR /&gt;CapturingGroup&lt;BR /&gt;GroupNumber:1&lt;BR /&gt;Repeat&lt;BR /&gt;0&lt;BR /&gt;zero or more times&lt;STRONG class="b4"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=&amp;gt;&amp;gt;&amp;gt;&lt;STRONG&gt; remove Leading Zeros in the varible nbr&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;nbr = 0001 =&amp;gt; mat_nbr=1&lt;/P&gt;
&lt;P&gt;nbr= 001 01 =&amp;gt; mat_nbr=1 01&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 14:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxchange-understanding/m-p/828848#M327444</guid>
      <dc:creator>kelxxx</dc:creator>
      <dc:date>2022-08-16T14:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Prxchange understanding</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Prxchange-understanding/m-p/828919#M327461</link>
      <description>&lt;P&gt;The function call removes leading zeros if starting at the first character. Is equivalent to prxchange("s/^0+//", 1, NBR). Note that prxchange("s/^\s*0+//", 1, NBR) would account for leading spaces.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 19:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Prxchange-understanding/m-p/828919#M327461</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2022-08-16T19:32:39Z</dc:date>
    </item>
  </channel>
</rss>

