<?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 Removing control words from RTF compare macro using Regular expressions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Removing-control-words-from-RTF-compare-macro-using-Regular/m-p/856666#M338478</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a macro to compare two versions of an rtf output for differences. My question is there a way to compress/remove control words such as /trowd or /setd using regular expressions so that when using proc compare to detect differences they will match up better. For example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;\trowd\trkeep\...etc..\cf1{Alfreq\cell}\pard\...cf1{1.6\cell}\pard…..\cf1{60\cell}{\row}&lt;BR /&gt;\trowd\trkeep\...etc..\cf1{Alice\cell}\pard\...cf1{1.5\cell}\pard…..\cf1{50\cell}{\row}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;being turned into this&lt;/P&gt;
&lt;P&gt;Alfreq ^^^ 1.6 ^^^ 60 ^^^&lt;BR /&gt;Alice ^^^ 1.5 ^^^ 50 ^^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 16:16:05 GMT</pubDate>
    <dc:creator>smackerz1988</dc:creator>
    <dc:date>2023-02-01T16:16:05Z</dc:date>
    <item>
      <title>Removing control words from RTF compare macro using Regular expressions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-control-words-from-RTF-compare-macro-using-Regular/m-p/856666#M338478</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a macro to compare two versions of an rtf output for differences. My question is there a way to compress/remove control words such as /trowd or /setd using regular expressions so that when using proc compare to detect differences they will match up better. For example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;\trowd\trkeep\...etc..\cf1{Alfreq\cell}\pard\...cf1{1.6\cell}\pard…..\cf1{60\cell}{\row}&lt;BR /&gt;\trowd\trkeep\...etc..\cf1{Alice\cell}\pard\...cf1{1.5\cell}\pard…..\cf1{50\cell}{\row}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;being turned into this&lt;/P&gt;
&lt;P&gt;Alfreq ^^^ 1.6 ^^^ 60 ^^^&lt;BR /&gt;Alice ^^^ 1.5 ^^^ 50 ^^^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:16:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-control-words-from-RTF-compare-macro-using-Regular/m-p/856666#M338478</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2023-02-01T16:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Removing control words from RTF compare macro using Regular expressions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Removing-control-words-from-RTF-compare-macro-using-Regular/m-p/856678#M338482</link>
      <description>&lt;P&gt;If you search lexjansen.com you'll find papers on this, e.g.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/pharmasug-cn/2017/CC/PharmaSUG-China-2017-CC07.pdf" target="_blank"&gt;https://www.lexjansen.com/pharmasug-cn/2017/CC/PharmaSUG-China-2017-CC07.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.pharmasug.org/cd/papers/TT/TT13.pdf" target="_blank"&gt;https://www.pharmasug.org/cd/papers/TT/TT13.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But after skimming, I don't think I would do this in SAS.&amp;nbsp; I'd be more likely to read the RTF's into MS Word, and use Word's compare feature.&amp;nbsp; Which could probably be automated with VBA or whatever if needed.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 16:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Removing-control-words-from-RTF-compare-macro-using-Regular/m-p/856678#M338482</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-02-01T16:20:17Z</dc:date>
    </item>
  </channel>
</rss>

