<?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 get matches using REGEX in Contextual Analysis? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-matches-using-REGEX-in-Contextual-Analysis/m-p/583336#M10037</link>
    <description>&lt;P&gt;SOLVED: I found my own mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;REGEX: \d{4}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ins SCA. I was not aware of the systems sensitivity to spaces at the beginning. The correction I needed to make was to remove it and write&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;REGEX:\d{4}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2019 21:00:53 GMT</pubDate>
    <dc:creator>dowdalj</dc:creator>
    <dc:date>2019-08-22T21:00:53Z</dc:date>
    <item>
      <title>How to get matches using REGEX in Contextual Analysis?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-matches-using-REGEX-in-Contextual-Analysis/m-p/583332#M10036</link>
      <description>&lt;P&gt;I'm running into problems with the REGEX feature for custom concepts in SAS contextual analysis. I'm attempting to match strings of numbers with in textual documents. For example, one of my documents contains a sentence of the form&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Bob and Marie live at &lt;U&gt;&lt;EM&gt;1234&lt;/EM&gt; &lt;/U&gt;Main St"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm attempting to use the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;REGEX: \d{4}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To match the string "&lt;U&gt;&lt;EM&gt;1234&lt;/EM&gt;&lt;/U&gt;". When I test/run the custom concept I'm getting no matches. Does anyone know how I can fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 20:39:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-matches-using-REGEX-in-Contextual-Analysis/m-p/583332#M10036</guid>
      <dc:creator>dowdalj</dc:creator>
      <dc:date>2019-08-22T20:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get matches using REGEX in Contextual Analysis?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-matches-using-REGEX-in-Contextual-Analysis/m-p/583336#M10037</link>
      <description>&lt;P&gt;SOLVED: I found my own mistake.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;REGEX: \d{4}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ins SCA. I was not aware of the systems sensitivity to spaces at the beginning. The correction I needed to make was to remove it and write&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;REGEX:\d{4}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 21:00:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-get-matches-using-REGEX-in-Contextual-Analysis/m-p/583336#M10037</guid>
      <dc:creator>dowdalj</dc:creator>
      <dc:date>2019-08-22T21:00:53Z</dc:date>
    </item>
  </channel>
</rss>

