<?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 find the character in a string which is other than in the list in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366210#M87098</link>
    <description>&lt;P&gt;I am trying to find string which contains characters other than some set of&amp;nbsp;characters. Is there any function available for that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for e.g. &amp;nbsp; I want to find strings in which there are characters which is other than a-z or A-Z or _. Any thing other than this would be caught.&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2017 16:28:38 GMT</pubDate>
    <dc:creator>anandbillava</dc:creator>
    <dc:date>2017-06-12T16:28:38Z</dc:date>
    <item>
      <title>find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366210#M87098</link>
      <description>&lt;P&gt;I am trying to find string which contains characters other than some set of&amp;nbsp;characters. Is there any function available for that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for e.g. &amp;nbsp; I want to find strings in which there are characters which is other than a-z or A-Z or _. Any thing other than this would be caught.&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366210#M87098</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2017-06-12T16:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366213#M87099</link>
      <description>&lt;P&gt;Check the list of functions, specifically FINDC function&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are also functions for regular expressions, they start with PRX...&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366213#M87099</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2017-06-12T16:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366214#M87100</link>
      <description>&lt;P&gt;There are a number of possibilities.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The FINDC function, with the 'FK' modifiers, does exactly what you want. It's described at:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002264923.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002264923.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;F includes A-Z, a-z and underscore in the list of characters and K sets the function to only find characters that AREN'T in that list of characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:42:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366214#M87100</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2017-06-12T16:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366216#M87101</link>
      <description>&lt;P&gt;Thank you Bruno. I tried to use prxmatch and findc. I am not able to suceed. I am trying to find characters which is not in the list which is making me difficult to achieve this. Its easy to find the characters in the list.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:41:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366216#M87101</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2017-06-12T16:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366223#M87104</link>
      <description>&lt;P&gt;something like this&lt;/P&gt;
&lt;PRE&gt;  data have;
      /* Use PRXPARSE to compile the Perl regular expression.    */
  
     val ='123abc';
	 output;
	 val ='bacde_bde';
	 output;
	 val='abcdef';
	 output;
	 val='abc-jj';
	 output;
run;

data want(drop=patternid);
set have;
 patternID = prxparse('/[^A-Za-z_]+/');
 if prxmatch(patternID, val)&amp;gt;0;
 run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366223#M87104</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-06-12T16:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366228#M87106</link>
      <description>&lt;P&gt;Thank you all. I am able to do this using findc function.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:01:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366228#M87106</guid>
      <dc:creator>anandbillava</dc:creator>
      <dc:date>2017-06-12T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366233#M87108</link>
      <description>&lt;P&gt;That is what the VERIFY() function does.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:14:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366233#M87108</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-12T17:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: find the character in a string which is other than in the list</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366550#M87217</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
 if prxmatch('/\W/', strip(val));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Jun 2017 13:27:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-character-in-a-string-which-is-other-than-in-the-list/m-p/366550#M87217</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-06-13T13:27:45Z</dc:date>
    </item>
  </channel>
</rss>

