<?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 Using regular expressions for deletion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-regular-expressions-for-deletion/m-p/520436#M141120</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i want to delete the 3 numbers that are in the middle.&lt;/P&gt;&lt;P&gt;I tried like this; It does not work.&lt;/P&gt;&lt;P&gt;Will you please help me&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input name $;
cards;
901-333-444
;run;


proc sql;
select name
      , prxchange( 's/\A -\d{3} / /i',-1,name ) as name1
 from test
 ;
 quit ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Dec 2018 16:50:13 GMT</pubDate>
    <dc:creator>mansour_ib_sas</dc:creator>
    <dc:date>2018-12-11T16:50:13Z</dc:date>
    <item>
      <title>Using regular expressions for deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-regular-expressions-for-deletion/m-p/520436#M141120</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;i want to delete the 3 numbers that are in the middle.&lt;/P&gt;&lt;P&gt;I tried like this; It does not work.&lt;/P&gt;&lt;P&gt;Will you please help me&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input name $;
cards;
901-333-444
;run;


proc sql;
select name
      , prxchange( 's/\A -\d{3} / /i',-1,name ) as name1
 from test
 ;
 quit ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 16:50:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-regular-expressions-for-deletion/m-p/520436#M141120</guid>
      <dc:creator>mansour_ib_sas</dc:creator>
      <dc:date>2018-12-11T16:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using regular expressions for deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-regular-expressions-for-deletion/m-p/520443#M141123</link>
      <description>&lt;P&gt;please try&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input name $20.;
name1=prxchange('s/(\d{1,3})\-(\d{1,3})\-(\d{1,3})/$1-$3/i',-1,strip(name));
put name1;
cards;
901-333-444
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Dec 2018 17:07:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-regular-expressions-for-deletion/m-p/520443#M141123</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-12-11T17:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using regular expressions for deletion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-regular-expressions-for-deletion/m-p/520489#M141144</link>
      <description>&lt;P&gt;Use&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;prxchange(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'s/-\d+-/-/o'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;, name&lt;/FONT&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2018 18:46:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-regular-expressions-for-deletion/m-p/520489#M141144</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-12-11T18:46:27Z</dc:date>
    </item>
  </channel>
</rss>

