<?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 Regexp : Conditional matching if there are square brackets... in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Regexp-Conditional-matching-if-there-are-square-brackets/m-p/567251#M11470</link>
    <description>&lt;P&gt;Hi All,&lt;BR /&gt;Anybody knows how to match this in one regexp ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[Home[0-8]] or&amp;nbsp;Home[0-8]&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;So far tried this but it's not working ..&lt;BR /&gt;.*?\([Home[0-8]|[(Home[0-8]]).?\].*&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the first one is between square brackets&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;after the numbers there could be . or , ( period or comma)&lt;/LI&gt;&lt;LI&gt;How to apply the non greedy matching ? if both found ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jun 2019 13:13:22 GMT</pubDate>
    <dc:creator>SIgnificatif</dc:creator>
    <dc:date>2019-06-19T13:13:22Z</dc:date>
    <item>
      <title>Regexp : Conditional matching if there are square brackets...</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Regexp-Conditional-matching-if-there-are-square-brackets/m-p/567251#M11470</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;Anybody knows how to match this in one regexp ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[Home[0-8]] or&amp;nbsp;Home[0-8]&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;So far tried this but it's not working ..&lt;BR /&gt;.*?\([Home[0-8]|[(Home[0-8]]).?\].*&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the first one is between square brackets&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;after the numbers there could be . or , ( period or comma)&lt;/LI&gt;&lt;LI&gt;How to apply the non greedy matching ? if both found ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 13:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Regexp-Conditional-matching-if-there-are-square-brackets/m-p/567251#M11470</guid>
      <dc:creator>SIgnificatif</dc:creator>
      <dc:date>2019-06-19T13:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regexp : Conditional matching if there are square brackets...</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Regexp-Conditional-matching-if-there-are-square-brackets/m-p/567346#M11481</link>
      <description>&lt;P&gt;Something like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;\[*Home\[0-8[,.]*\]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, what do you mean by 'if both found'? Can the two be in a single string or?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 16:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Regexp-Conditional-matching-if-there-are-square-brackets/m-p/567346#M11481</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-06-19T16:23:24Z</dc:date>
    </item>
  </channel>
</rss>

