<?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 Extract sentence after a specific word in a string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extract-sentence-after-a-specific-word-in-a-string/m-p/861275#M340216</link>
    <description>&lt;P&gt;Good Evening, I'm trying to extract the sentence from a specific text in a string. For example: the table below has the common word "Retail" and i would like to extract all the values from &lt;EM&gt;&lt;STRONG&gt;Retail. Please assist. Thank you in advance.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TEST DATA Retail-Drug name dosage and strength&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HELLO DATA Retail Store closes at 8pm&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WELCOME DATA Retail this is the data we needed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Good night DATA Retail Store opens at 9AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Retail-Drug name dosage and strength&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retail Store closes at 8pm&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retail this is the data we needed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retail Store opens at 9AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Tue, 28 Feb 2023 04:01:42 GMT</pubDate>
    <dc:creator>pappusrini</dc:creator>
    <dc:date>2023-02-28T04:01:42Z</dc:date>
    <item>
      <title>Extract sentence after a specific word in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-sentence-after-a-specific-word-in-a-string/m-p/861275#M340216</link>
      <description>&lt;P&gt;Good Evening, I'm trying to extract the sentence from a specific text in a string. For example: the table below has the common word "Retail" and i would like to extract all the values from &lt;EM&gt;&lt;STRONG&gt;Retail. Please assist. Thank you in advance.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;TEST DATA Retail-Drug name dosage and strength&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;HELLO DATA Retail Store closes at 8pm&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;WELCOME DATA Retail this is the data we needed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Good night DATA Retail Store opens at 9AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected Output:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Retail-Drug name dosage and strength&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retail Store closes at 8pm&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retail this is the data we needed&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Retail Store opens at 9AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 28 Feb 2023 04:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-sentence-after-a-specific-word-in-a-string/m-p/861275#M340216</guid>
      <dc:creator>pappusrini</dc:creator>
      <dc:date>2023-02-28T04:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extract sentence after a specific word in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-sentence-after-a-specific-word-in-a-string/m-p/861283#M340222</link>
      <description>&lt;P&gt;The FINDW function returns the position where a word is first found, which you can then use in SUBSTR.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 06:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-sentence-after-a-specific-word-in-a-string/m-p/861283#M340222</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-02-28T06:10:02Z</dc:date>
    </item>
  </channel>
</rss>

