<?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: Find alphanumeric string within a string in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189446#M47843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The index function would work too.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a='abcdefgh1zzbxasefe' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b='1zz' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; c='gh1';&lt;/P&gt;&lt;P&gt;&amp;nbsp; d='xxx';&lt;/P&gt;&lt;P&gt;&amp;nbsp; testb=index(a,b);&lt;/P&gt;&lt;P&gt;&amp;nbsp; testc=index(a,c);&lt;/P&gt;&lt;P&gt;&amp;nbsp; testd=index(a,d);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 21:50:30 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2014-02-27T21:50:30Z</dc:date>
    <item>
      <title>Find alphanumeric string within a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189444#M47841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having a hard time getting the position of an alphanumeric string within another string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example.&lt;/P&gt;&lt;P&gt;a='abcdefgh1zzbxasefe' ;&lt;/P&gt;&lt;P&gt;b='1zz' ;&lt;/P&gt;&lt;P&gt;How can I find the position of b within a?&amp;nbsp; When there are spaces it works but I can't find the correct function to get me this information like this.&amp;nbsp; I've tried find, findw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 21:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189444#M47841</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2014-02-27T21:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Find alphanumeric string within a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189445#M47842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I figured it out.&amp;nbsp; All the time I spent searching and testing and not until I post my question do I get it working. &lt;/P&gt;&lt;P&gt;I used this approach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data z;&lt;/P&gt;&lt;P&gt;&amp;nbsp; x = prxmatch('m/1zz|2ex/oi', 'abcdefgh1zzbxasefe') ;&amp;nbsp; &lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get x=9 back.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 21:47:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189445#M47842</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2014-02-27T21:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find alphanumeric string within a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189446#M47843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The index function would work too.&amp;nbsp; e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; a='abcdefgh1zzbxasefe' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; b='1zz' ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; c='gh1';&lt;/P&gt;&lt;P&gt;&amp;nbsp; d='xxx';&lt;/P&gt;&lt;P&gt;&amp;nbsp; testb=index(a,b);&lt;/P&gt;&lt;P&gt;&amp;nbsp; testc=index(a,c);&lt;/P&gt;&lt;P&gt;&amp;nbsp; testd=index(a,d);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 21:50:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189446#M47843</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-02-27T21:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find alphanumeric string within a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189447#M47844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arthur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked very good for what I was trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2014 15:15:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Find-alphanumeric-string-within-a-string/m-p/189447#M47844</guid>
      <dc:creator>jerry898969</dc:creator>
      <dc:date>2014-02-28T15:15:28Z</dc:date>
    </item>
  </channel>
</rss>

