<?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: Regex and delete in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609436#M18502</link>
    <description>I want to delete the observations where these three strings occur.</description>
    <pubDate>Wed, 04 Dec 2019 16:05:29 GMT</pubDate>
    <dc:creator>aaaaa34</dc:creator>
    <dc:date>2019-12-04T16:05:29Z</dc:date>
    <item>
      <title>Regex and delete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609434#M18500</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to make an if condition like if PRXMATCH(..., var1)&amp;gt;0 then delete. I would like to remove all cases in which I have:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;0,00dd&lt;/LI&gt;
&lt;LI&gt;454dd&lt;/LI&gt;
&lt;LI&gt;0,234dd&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:01:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609434#M18500</guid>
      <dc:creator>aaaaa34</dc:creator>
      <dc:date>2019-12-04T16:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Regex and delete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609435#M18501</link>
      <description>&lt;P&gt;Do you want to delete the observations where any of those three strings occur or do you want to delete the 'dd' part of the posted strings?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609435#M18501</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-12-04T16:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regex and delete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609436#M18502</link>
      <description>I want to delete the observations where these three strings occur.</description>
      <pubDate>Wed, 04 Dec 2019 16:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609436#M18502</guid>
      <dc:creator>aaaaa34</dc:creator>
      <dc:date>2019-12-04T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regex and delete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609437#M18503</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input string $20.;
datalines;
abc0,00ddabc
abcabc
defdef
abcdef454dd
0,234ddabcdef
;

data want;
   set have;
   if not prxmatch('/0,00dd|454dd|0,234dd/', string);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609437#M18503</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-12-04T16:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regex and delete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609438#M18504</link>
      <description>&lt;P&gt;What if I have different numbers before dd? I wrote these numbers with dd only like an example. I want remove all cases in which dd is after numbers.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:12:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609438#M18504</guid>
      <dc:creator>aaaaa34</dc:creator>
      <dc:date>2019-12-04T16:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Regex and delete</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609439#M18505</link>
      <description>&lt;P&gt;Ah ok. Do this. This looks for patterns where the string 'dd' is after at least 1 digit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input string $20.;
datalines;
abc0,00ddabc
abcabc
defdef
abcdef454dd
0,234ddabcdef
;

data want;
   set have;
   if not prxmatch('/\d+dd/', string);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Dec 2019 16:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Regex-and-delete/m-p/609439#M18505</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-12-04T16:14:34Z</dc:date>
    </item>
  </channel>
</rss>

