<?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: How to extract the value which is in double parentheses in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582675#M165781</link>
    <description>&lt;P&gt;Here is one way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    string="SUBJECT NOT ELIGIBLE (LOW NEUTROPHIL COUNT (1.3))";
    pID = prxparse('/\((.*?)\)+/');
    call prxsubstr(pID, string, pos, length);
    newstring=substr(string, pos, length);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Aug 2019 06:25:07 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-08-21T06:25:07Z</dc:date>
    <item>
      <title>How to extract the value which is in double parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582671#M165780</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a string of &lt;SPAN&gt;characters&amp;nbsp;and I need the value in double parentheses.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I do?&lt;/P&gt;&lt;P&gt;Data is:&amp;nbsp;SUBJECT NOT ELIGIBLE (LOW NEUTROPHIL COUNT (1.3))&lt;/P&gt;&lt;P&gt;I'd like to extract "(LOW NEUTROPHIL COUNT (1.3))".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 06:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582671#M165780</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2019-08-21T06:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the value which is in double parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582675#M165781</link>
      <description>&lt;P&gt;Here is one way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    string="SUBJECT NOT ELIGIBLE (LOW NEUTROPHIL COUNT (1.3))";
    pID = prxparse('/\((.*?)\)+/');
    call prxsubstr(pID, string, pos, length);
    newstring=substr(string, pos, length);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Aug 2019 06:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582675#M165781</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-21T06:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the value which is in double parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582681#M165786</link>
      <description>WOW! It works!&lt;BR /&gt;I never used 'prxparse' syntax...before.&lt;BR /&gt;I only know SCAN and SUBSTR function...&lt;BR /&gt;Thanks a lot!</description>
      <pubDate>Wed, 21 Aug 2019 06:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582681#M165786</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2019-08-21T06:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the value which is in double parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582687#M165790</link>
      <description>&lt;P&gt;Anytime, glad to help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2019 07:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582687#M165790</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-08-21T07:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the value which is in double parentheses</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582731#M165807</link>
      <description>&lt;PRE&gt;data test;
    string="SUBJECT NOT ELIGIBLE (LOW NEUTROPHIL COUNT (1.3))";
    newstring=prxchange('s/[^(]*(\(.+\)).*/$1/',1,string);
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Aug 2019 11:41:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-extract-the-value-which-is-in-double-parentheses/m-p/582731#M165807</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-08-21T11:41:39Z</dc:date>
    </item>
  </channel>
</rss>

