<?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: Find a word with a dot in a variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Find-a-word-with-a-dot-in-a-variable/m-p/502969#M134335</link>
    <description>&lt;P&gt;The period is a special character in regular expressions. It must be escaped to be interpreted as the period character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OD2 = prxmatch("m/\.OD\./ois", productcode);&lt;/P&gt;</description>
    <pubDate>Wed, 10 Oct 2018 03:42:54 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2018-10-10T03:42:54Z</dc:date>
    <item>
      <title>Find a word with a dot in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-word-with-a-dot-in-a-variable/m-p/502962#M134331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I find ".OD." with the 2 dots either side within a character?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the prxmatch function but it is ignoring the dots either side and just finding the 'OD'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;OD2 = prxmatch("m/.OD./ois", productcode);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sally&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 02:54:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-word-with-a-dot-in-a-variable/m-p/502962#M134331</guid>
      <dc:creator>Selli5</dc:creator>
      <dc:date>2018-10-10T02:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find a word with a dot in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-word-with-a-dot-in-a-variable/m-p/502966#M134334</link>
      <description>&lt;P&gt;Is OD what you want to find, or a period, two characters and another period?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it's the first, have you tried FIND() or INDEX()?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;OD2 = find(productcode, '.OD.', 'i');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 10 Oct 2018 03:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-word-with-a-dot-in-a-variable/m-p/502966#M134334</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-10T03:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find a word with a dot in a variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-word-with-a-dot-in-a-variable/m-p/502969#M134335</link>
      <description>&lt;P&gt;The period is a special character in regular expressions. It must be escaped to be interpreted as the period character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OD2 = prxmatch("m/\.OD\./ois", productcode);&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 03:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-word-with-a-dot-in-a-variable/m-p/502969#M134335</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-10-10T03:42:54Z</dc:date>
    </item>
  </channel>
</rss>

