<?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 How can i do this LIKE '[^A-D][^A-Z][^A-Z][^0-9]%' in sas? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-can-i-do-this-LIKE-A-D-A-Z-A-Z-0-9-in-sas/m-p/588126#M168044</link>
    <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;how can i do this LIKE '[^A-D][^A-Z][^A-Z][^0-9]%' in SAS?&lt;BR /&gt;&lt;SPAN class=""&gt;I want to leave only those cases that do not have the letters A to D in the first place, the letters A to Z in the second and third places and the numbers 0 to 1 in the fourth place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Sample data below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;FU321007&lt;BR /&gt;18AC90104&lt;BR /&gt;ACZ879876&lt;BR /&gt;15BA10226&lt;BR /&gt;18AC77472&lt;BR /&gt;CSR646689&lt;BR /&gt;AA9601648&lt;BR /&gt;AAA655447&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 07:10:14 GMT</pubDate>
    <dc:creator>waw_pie</dc:creator>
    <dc:date>2019-09-12T07:10:14Z</dc:date>
    <item>
      <title>How can i do this LIKE '[^A-D][^A-Z][^A-Z][^0-9]%' in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-i-do-this-LIKE-A-D-A-Z-A-Z-0-9-in-sas/m-p/588126#M168044</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN&gt;Hey,&lt;/SPAN&gt;&lt;BR /&gt;how can i do this LIKE '[^A-D][^A-Z][^A-Z][^0-9]%' in SAS?&lt;BR /&gt;&lt;SPAN class=""&gt;I want to leave only those cases that do not have the letters A to D in the first place, the letters A to Z in the second and third places and the numbers 0 to 1 in the fourth place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Sample data below:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;FU321007&lt;BR /&gt;18AC90104&lt;BR /&gt;ACZ879876&lt;BR /&gt;15BA10226&lt;BR /&gt;18AC77472&lt;BR /&gt;CSR646689&lt;BR /&gt;AA9601648&lt;BR /&gt;AAA655447&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 07:10:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-i-do-this-LIKE-A-D-A-Z-A-Z-0-9-in-sas/m-p/588126#M168044</guid>
      <dc:creator>waw_pie</dc:creator>
      <dc:date>2019-09-12T07:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can i do this LIKE '[^A-D][^A-Z][^A-Z][^0-9]%' in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-i-do-this-LIKE-A-D-A-Z-A-Z-0-9-in-sas/m-p/588127#M168045</link>
      <description>&lt;P&gt;Hi and welcome to the SAS Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do something 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 $10.;
datalines;
FU321007
18AC90104
ACZ879876
15BA10226
18AC77472
CSR646689
AA9601648
AAA655447
;

data want;
    set have;
    if not prxmatch('/^[A-D][A-Z]{2}[0-9]/', string);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Sep 2019 07:21:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-i-do-this-LIKE-A-D-A-Z-A-Z-0-9-in-sas/m-p/588127#M168045</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-12T07:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can i do this LIKE '[^A-D][^A-Z][^A-Z][^0-9]%' in sas?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-can-i-do-this-LIKE-A-D-A-Z-A-Z-0-9-in-sas/m-p/588128#M168046</link>
      <description>&lt;P&gt;index or substr functions with an "if ... then delete" statement. That would be a crude way, i think there's a better way using other text functions that someone else will know&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 07:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-can-i-do-this-LIKE-A-D-A-Z-A-Z-0-9-in-sas/m-p/588128#M168046</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2019-09-12T07:22:06Z</dc:date>
    </item>
  </channel>
</rss>

