<?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: reg expressions part II-controlling the &amp;quot;no&amp;quot; in the expression in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115636#M31964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simplify your expression to prxparse('/no\b.*infiltrate/i')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "\b" defines a word boundary, ".*" then matches any number of characters before "infiltrate".&amp;nbsp; You already have "/i" at the end of the expression to ignore case, therefore you don't need to specify "N|N n|n" etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jul 2012 16:08:22 GMT</pubDate>
    <dc:creator>Keith</dc:creator>
    <dc:date>2012-07-23T16:08:22Z</dc:date>
    <item>
      <title>reg expressions part II-controlling the "no" in the expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115634#M31962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all-&lt;/P&gt;&lt;P&gt;I am attempting to use a regular expression such as below:&lt;/P&gt;&lt;P&gt;prxparse('/[ N|N| n|n]o.{1,30}infiltrate/i');&lt;/P&gt;&lt;P&gt;For no infiltrate or No infiltrate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However it is also picking up non xxx infiltrate, normal...infiltrate.&lt;/P&gt;&lt;P&gt;How do I limit it to just no?&lt;/P&gt;&lt;P&gt;I do need the character spaces as there are quite a number of words that can can appear between the two words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 14:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115634#M31962</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2012-07-23T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: reg expressions part II-controlling the "no" in the expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115635#M31963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to the world of "natural language processing" (NLP).&amp;nbsp; In specific cases like that I have addressed it with subsequent if-then-else constructs to get at the special cases.&amp;nbsp; You have to do a bit of desk checking and additional review for new special cases when the data are refreshed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certainly not ideal, but works OK when the searching is reasonably well contained.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 14:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115635#M31963</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-07-23T14:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: reg expressions part II-controlling the "no" in the expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115636#M31964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can simplify your expression to prxparse('/no\b.*infiltrate/i')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "\b" defines a word boundary, ".*" then matches any number of characters before "infiltrate".&amp;nbsp; You already have "/i" at the end of the expression to ignore case, therefore you don't need to specify "N|N n|n" etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 16:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115636#M31964</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-07-23T16:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: reg expressions part II-controlling the "no" in the expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115637#M31965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Keith-That helps immensely-One quick question-what if I do want to set the number of characters as&lt;/P&gt;&lt;P&gt;I don't want to see 'no&amp;nbsp;&amp;nbsp;&amp;nbsp; '500 characters' infiltrate' which is entirely possible. That is why I was containing it to 30 characters.&lt;/P&gt;&lt;P&gt;Lawrence&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jul 2012 17:45:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115637#M31965</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2012-07-23T17:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: reg expressions part II-controlling the "no" in the expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115638#M31966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then just change .* to .{1,30} in the expression, as per your original post.&amp;nbsp; This will allow up to 30 characters between 'no' and 'infiltrate'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 07:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115638#M31966</guid>
      <dc:creator>Keith</dc:creator>
      <dc:date>2012-07-24T07:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: reg expressions part II-controlling the "no" in the expression</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115639#M31967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;many thanks Keith!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2012 18:20:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/reg-expressions-part-II-controlling-the-quot-no-quot-in-the/m-p/115639#M31967</guid>
      <dc:creator>LB</dc:creator>
      <dc:date>2012-07-30T18:20:25Z</dc:date>
    </item>
  </channel>
</rss>

