<?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: What is the modifier for prxmatch for case-sensitive? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371042#M275848</link>
    <description>&lt;P&gt;Lower case i?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2017 20:18:39 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-06-27T20:18:39Z</dc:date>
    <item>
      <title>What is the modifier for prxmatch for case-sensitive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371039#M275847</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to seach 'BDS' upcase in the string, what is the modifier control for prxmatch?&amp;nbsp; I found the 'I' is not working. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/(?=.*?BDS)/I"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, &amp;amp;var) &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 19:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371039#M275847</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-06-27T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: What is the modifier for prxmatch for case-sensitive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371042#M275848</link>
      <description>&lt;P&gt;Lower case i?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 20:18:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371042#M275848</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-06-27T20:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the modifier for prxmatch for case-sensitive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371044#M275849</link>
      <description>&lt;P&gt;i stands for case insensitive. remove i if you want to be case specific.&amp;nbsp;so you should be able to search for BDS this way too but you will find all other cases along with it. Please check the pattern you are using if it has not macthed with i&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/(?=.*?BDS)/I"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, &amp;amp;var) &amp;gt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;change it to&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prxmatch(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"m/(?=.*?BDS)/"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, &amp;amp;var) &amp;gt; &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; found=&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2017 20:32:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371044#M275849</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-06-27T20:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is the modifier for prxmatch for case-sensitive?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371067#M275850</link>
      <description>&lt;P&gt;Not your question, but do you need the read-ahead?&lt;/P&gt;
&lt;P&gt;How does this work for you:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; if prxmatch("m/BDS/", &amp;amp;var) &amp;gt; 0 then found=1; 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or even this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if index(&amp;amp;var,'BDS') then FOUND=1;&lt;/CODE&gt;&lt;/PRE&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>Tue, 27 Jun 2017 21:53:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-is-the-modifier-for-prxmatch-for-case-sensitive/m-p/371067#M275850</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-27T21:53:43Z</dc:date>
    </item>
  </channel>
</rss>

