<?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 prxparse function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880043#M347693</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How can i get SAS to ignore / inside my target text? For example, I want to find the following texts: INDACATEROL and&amp;nbsp; INDACATEROL/GLYCOPYRRONIUM&lt;/P&gt;
&lt;P&gt;when i use the argument pattern_id=prxparse('/(&amp;nbsp; INDACATEROL| INDACATEROL/GLYCOPYRRONIUM)/i');&lt;/P&gt;
&lt;P&gt;it is returning error message because of the "/" inside the parentheses.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Jun 2023 10:11:53 GMT</pubDate>
    <dc:creator>bayzid</dc:creator>
    <dc:date>2023-06-11T10:11:53Z</dc:date>
    <item>
      <title>prxparse function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880043#M347693</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;How can i get SAS to ignore / inside my target text? For example, I want to find the following texts: INDACATEROL and&amp;nbsp; INDACATEROL/GLYCOPYRRONIUM&lt;/P&gt;
&lt;P&gt;when i use the argument pattern_id=prxparse('/(&amp;nbsp; INDACATEROL| INDACATEROL/GLYCOPYRRONIUM)/i');&lt;/P&gt;
&lt;P&gt;it is returning error message because of the "/" inside the parentheses.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 10:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880043#M347693</guid>
      <dc:creator>bayzid</dc:creator>
      <dc:date>2023-06-11T10:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: prxparse function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880044#M347694</link>
      <description>&lt;P&gt;Mask the slash with a backslash.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 10:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880044#M347694</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-11T10:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: prxparse function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880048#M347698</link>
      <description>&lt;P&gt;I don't want to mask it but consider it as a part of my target string. I want SAS to extract it with the slash. For example "CLOTRIMAZOLE/HYDROCORTISONE" is a single word that I want to pick up.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 13:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880048#M347698</guid>
      <dc:creator>bayzid</dc:creator>
      <dc:date>2023-06-11T13:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: prxparse function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880067#M347710</link>
      <description>&lt;P&gt;"Masking" in this context means it loses its special function and is considered part of the data.&lt;/P&gt;
&lt;P&gt;Did you try it?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 18:25:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880067#M347710</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-06-11T18:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: prxparse function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880069#M347711</link>
      <description>&lt;P&gt;You have to MASK or ESCAPE the characters that have special meaning to RegEx by adding a backslash before them.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;pattern_id=prxparse('/(  INDACATEROL| INDACATEROL\/GLYCOPYRRONIUM)/i')&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Did you really mean to include the spaces at the start of the search strings? What about words that are at the beginning of the string being examined?&amp;nbsp; And did you really mean to require two spaces before INDCATAROL alone and only one space before&amp;nbsp;INDACATEROL/GLYCOPYRRONIUM?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without that extra space on the first pattern anything that would match the first pattern would also match the start of the second pattern.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 18:44:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880069#M347711</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-11T18:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: prxparse function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880096#M347724</link>
      <description>&lt;P&gt;I inserted a space at the beginning of the character variable. Now it's working.&lt;BR /&gt;Thanks to both of you.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 21:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/prxparse-function/m-p/880096#M347724</guid>
      <dc:creator>bayzid</dc:creator>
      <dc:date>2023-06-11T21:30:07Z</dc:date>
    </item>
  </channel>
</rss>

