<?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: searching words in a string without spaces in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435517#M282038</link>
    <description>&lt;P&gt;Ram,&lt;/P&gt;
&lt;P&gt;It is difficult to look for meaningful words in a string by SAS programming. Perhaps a built-in dictionary might be useful. However, I wonder whether you can rephrase your requirement such that you give some N number of predefined words and look for the occurrence any such word(s) within the String. You may ask for the number of words found in each of the Strings.&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;DataSp&lt;/P&gt;</description>
    <pubDate>Fri, 09 Feb 2018 03:52:23 GMT</pubDate>
    <dc:creator>KachiM</dc:creator>
    <dc:date>2018-02-09T03:52:23Z</dc:date>
    <item>
      <title>searching words in a string without spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435498#M282034</link>
      <description>&lt;P&gt;Hi All, good morning.&lt;/P&gt;&lt;P&gt;Considering I have a string "WEIGHTMANAGEMENT", is it possible in SAS to extract the words "Weight", "Manage" and "Management" without me specifying what to search but SAS producing all the possible words in a string?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rama&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 23:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435498#M282034</guid>
      <dc:creator>Ramakanthkrovi</dc:creator>
      <dc:date>2018-02-08T23:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: searching words in a string without spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435502#M282035</link>
      <description>&lt;P&gt;So you also want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we&lt;/P&gt;
&lt;P&gt;man&lt;/P&gt;
&lt;P&gt;manage&lt;/P&gt;
&lt;P&gt;a&lt;/P&gt;
&lt;P&gt;an&lt;/P&gt;
&lt;P&gt;nag&lt;/P&gt;
&lt;P&gt;age&lt;/P&gt;
&lt;P&gt;gem&lt;/P&gt;
&lt;P&gt;men&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;???&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 00:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435502#M282035</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-09T00:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: searching words in a string without spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435503#M282036</link>
      <description>&lt;P&gt;Yes, but I can restrict the number of characters per word then isn't it?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 00:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435503#M282036</guid>
      <dc:creator>Ramakanthkrovi</dc:creator>
      <dc:date>2018-02-09T00:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: searching words in a string without spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435504#M282037</link>
      <description>&lt;P&gt;Look very closely at your list of "words" that you need to extract. This may be possible but order of processing may be important such as If I find "management" do I continue to look for "manage".&lt;/P&gt;
&lt;P&gt;The more similar words you want to find the more complicated something like this gets. For instance if you also have to search for "MAN" or "EIGHT".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know the words you want to search for or are you hoping to find a generic English (or other) language parser that could decipher:&lt;/P&gt;
&lt;P&gt;"THISISASENTENCEWITHOUTANYSPACES". A native English speaker can probably decipher that phrase but I really would hate to try to program something to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might provide a larger number of examples and search words to work with, and to show the desired output.&lt;/P&gt;
&lt;P&gt;Note that if want this to work with misspellings such as "WEIGHTMANAGEMNET" that is going to make this likely an order of magnitude more complicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS does have&amp;nbsp;tools for&amp;nbsp; more complex text processing in the SAS Text Miner module.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 00:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435504#M282037</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-09T00:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: searching words in a string without spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435517#M282038</link>
      <description>&lt;P&gt;Ram,&lt;/P&gt;
&lt;P&gt;It is difficult to look for meaningful words in a string by SAS programming. Perhaps a built-in dictionary might be useful. However, I wonder whether you can rephrase your requirement such that you give some N number of predefined words and look for the occurrence any such word(s) within the String. You may ask for the number of words found in each of the Strings.&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;DataSp&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 03:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435517#M282038</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2018-02-09T03:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: searching words in a string without spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435520#M282039</link>
      <description>&lt;P&gt;Google does it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture Google.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18417i930DA95DA2938457/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture Google.PNG" alt="Capture Google.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 05:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435520#M282039</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2018-02-09T05:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: searching words in a string without spaces</title>
      <link>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435685#M282040</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Google does it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture Google.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18417i930DA95DA2938457/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture Google.PNG" alt="Capture Google.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And how much time and $ was spent by Google to accomplish this.&lt;/P&gt;
&lt;P&gt;I won't mention how many times Google tries to split my actual search terms incorrectly though.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/searching-words-in-a-string-without-spaces/m-p/435685#M282040</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-09T16:12:50Z</dc:date>
    </item>
  </channel>
</rss>

