<?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: identifying brackets using prx function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/identifying-brackets-using-prx-function/m-p/831096#M328421</link>
    <description>&lt;P&gt;No need for regular expressions. Just use INDEXC() function and you can search for any list of individual characters, including the parentheses and brackets in your code.&amp;nbsp; Note that SAS boolean operators treats zero (and missing) as FALSE and any other number as TRUE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you can just use this simple, clear expression:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if not indexc(&amp;amp;var.,"(){}[]")&amp;nbsp;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 13:34:10 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2022-08-30T13:34:10Z</dc:date>
    <item>
      <title>identifying brackets using prx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/identifying-brackets-using-prx-function/m-p/831095#M328420</link>
      <description>&lt;P&gt;Hi I would like to replace the following code with a prx function possibly prxmatch. Essentially I want to exclude any rows from a data set where a variable value has at least one bracket.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data work.&amp;amp;ds.;&lt;BR /&gt;set work.&amp;amp;ds.;&lt;BR /&gt;if index(&amp;amp;var.,"{")=0&lt;BR /&gt;and index(&amp;amp;var.,"}")=0&lt;BR /&gt;and index(&amp;amp;var.,"[")=0&lt;BR /&gt;and index(&amp;amp;var.,"]")=0&lt;BR /&gt;and index(&amp;amp;var.,"(")=0&lt;BR /&gt;and index(&amp;amp;var.,")")=0;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:27:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/identifying-brackets-using-prx-function/m-p/831095#M328420</guid>
      <dc:creator>kalbo</dc:creator>
      <dc:date>2022-08-30T13:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: identifying brackets using prx function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/identifying-brackets-using-prx-function/m-p/831096#M328421</link>
      <description>&lt;P&gt;No need for regular expressions. Just use INDEXC() function and you can search for any list of individual characters, including the parentheses and brackets in your code.&amp;nbsp; Note that SAS boolean operators treats zero (and missing) as FALSE and any other number as TRUE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you can just use this simple, clear expression:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if not indexc(&amp;amp;var.,"(){}[]")&amp;nbsp;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:34:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/identifying-brackets-using-prx-function/m-p/831096#M328421</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-08-30T13:34:10Z</dc:date>
    </item>
  </channel>
</rss>

