<?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: Need help in creating regular expression for prxchange feed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-creating-regular-expression-for-prxchange-feed/m-p/882258#M348579</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x $20.;
cards;
Or
OR-
A OR B
AND+
and
Or-
ELSE
1ELSE
;

data want;
 set have;
 want=prxchange('s/^[a-z]+$//i',-1,compress(x));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 24 Jun 2023 10:05:30 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2023-06-24T10:05:30Z</dc:date>
    <item>
      <title>Need help in creating regular expression for prxchange feed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-creating-regular-expression-for-prxchange-feed/m-p/882256#M348577</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have below values in datset&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;OR-&lt;BR /&gt;A OR B&lt;BR /&gt;AND+&lt;BR /&gt;and&lt;BR /&gt;Or-&lt;BR /&gt;ELSE&lt;BR /&gt;1ELSE&lt;BR /&gt;&lt;BR /&gt;WHAT I want is out put as below&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;OR-&lt;BR /&gt;AND+&lt;BR /&gt;Or-&lt;BR /&gt;1ELSE&lt;BR /&gt;&lt;BR /&gt;So Basically if there is any digit or expression just immediately after SAS reserved keywords then it should be selected and this needs to be done using Prxchange regular expression as then it would be feed off to another third-party tool hence a prxchange regex is must&lt;BR /&gt;&lt;BR /&gt;I am completely out of ideas as I haven't used regex before&lt;BR /&gt;&lt;BR /&gt;Any help is really appreciated</description>
      <pubDate>Sat, 24 Jun 2023 08:24:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-creating-regular-expression-for-prxchange-feed/m-p/882256#M348577</guid>
      <dc:creator>yashpande</dc:creator>
      <dc:date>2023-06-24T08:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in creating regular expression for prxchange feed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-in-creating-regular-expression-for-prxchange-feed/m-p/882258#M348579</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x $20.;
cards;
Or
OR-
A OR B
AND+
and
Or-
ELSE
1ELSE
;

data want;
 set have;
 want=prxchange('s/^[a-z]+$//i',-1,compress(x));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Jun 2023 10:05:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-in-creating-regular-expression-for-prxchange-feed/m-p/882258#M348579</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-06-24T10:05:30Z</dc:date>
    </item>
  </channel>
</rss>

