<?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: Special characters in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885407#M349864</link>
    <description>&lt;P&gt;Thanks Tom.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 07:36:36 GMT</pubDate>
    <dc:creator>BayzidurRahman</dc:creator>
    <dc:date>2023-07-19T07:36:36Z</dc:date>
    <item>
      <title>Special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885186#M349749</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;pattern_id=prxparse('/\b(DEMENTIA|AD DEM|AD WITH|ADVANCED DEM|ALZH|ALZHEIMER\'S|ALZHEIMERS|DEMEN|DEMENTIA\- ALZH|DEMETIA|DEMENI|BPSD|BPDS|BSPD|BSDP|
DEMENTAI|H\/O DEMENETIA)\b/i'); &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I am using the above code to identify some keywords. One of the keywords (&lt;CODE class=""&gt;ALZHEIMER'S&lt;/CODE&gt;) has apostrophe " ' " in it. I am trying to mask it by using a preceding backslash as I do for other special characters (such as "-")&amp;nbsp; but it is not working.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 01:54:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885186#M349749</guid>
      <dc:creator>BayzidurRahman</dc:creator>
      <dc:date>2023-07-18T01:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885198#M349758</link>
      <description>&lt;P&gt;Use double quotes on the outside:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pattern_id=prxparse("/\b(DEMENTIA|AD DEM|AD WITH|ADVANCED DEM|ALZH|ALZHEIMER\'S|ALZHEIMERS|DEMEN|DEMENTIA\- ALZH|DEMETIA|DEMENI|BPSD|BPDS|BSPD|BSDP|
DEMENTAI|H\/O DEMENETIA)\b/i"); &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Jul 2023 04:11:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885198#M349758</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-07-18T04:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885278#M349804</link>
      <description>&lt;P&gt;You problem has nothing to do with REGEX, but with basic syntax of how to construct a string constant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the character you are using on the outside&amp;nbsp; to indicate a string constant (either the single quote character, ',&amp;nbsp; or the double quote character, ") appears in the string then it needs to be doubled up.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So to make a string constant that contains&amp;nbsp;ALZHEIMER'S&amp;nbsp; you would need to use one of these two methods:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"ALZHEIMER'S"
'ALZHEIMER''S'&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In your case you should change the &lt;FONT face="courier new,courier"&gt;\'&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;''&lt;/FONT&gt; instead.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 14:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885278#M349804</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-07-18T14:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Special characters</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885407#M349864</link>
      <description>&lt;P&gt;Thanks Tom.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 07:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Special-characters/m-p/885407#M349864</guid>
      <dc:creator>BayzidurRahman</dc:creator>
      <dc:date>2023-07-19T07:36:36Z</dc:date>
    </item>
  </channel>
</rss>

