<?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 digits in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Extract-digits/m-p/45776#M9477</link>
    <description>If I have a drug name FEIBA VH 650, I use ("/ \d{1,5}\.?\d{0,4}/") to extract digits from it.&lt;BR /&gt;
&lt;BR /&gt;
How to extract 651 or 1200 from FEIBA VH 651-1200?</description>
    <pubDate>Fri, 22 Jan 2010 19:17:17 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2010-01-22T19:17:17Z</dc:date>
    <item>
      <title>Extract digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-digits/m-p/45776#M9477</link>
      <description>If I have a drug name FEIBA VH 650, I use ("/ \d{1,5}\.?\d{0,4}/") to extract digits from it.&lt;BR /&gt;
&lt;BR /&gt;
How to extract 651 or 1200 from FEIBA VH 651-1200?</description>
      <pubDate>Fri, 22 Jan 2010 19:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-digits/m-p/45776#M9477</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2010-01-22T19:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Extract digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-digits/m-p/45777#M9478</link>
      <description>if the format is always ddd-dddd (d for a digit) and there is no digit in strings in front of it, then you may toggle with anydigit(drugname) and index(drugname, '-'). or you can scan the string with delimitator space and '-' and see what you get from the data.</description>
      <pubDate>Fri, 22 Jan 2010 19:56:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-digits/m-p/45777#M9478</guid>
      <dc:creator>abdullala</dc:creator>
      <dc:date>2010-01-22T19:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extract digits</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Extract-digits/m-p/45778#M9479</link>
      <description>without the regular expression handling,, the extraction of number strings is fairly straight forward in SAS9. Just compress(), keeping blank, dash and digits. Then scan() using blank and dash as delimiters. &lt;BR /&gt;
I think it should be something like&lt;BR /&gt;
 scan( compress( original, ' -)', 'kd' ). 1, '- ' )&lt;BR /&gt;
 &lt;BR /&gt;
 PeterC</description>
      <pubDate>Sat, 23 Jan 2010 09:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Extract-digits/m-p/45778#M9479</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-01-23T09:45:21Z</dc:date>
    </item>
  </channel>
</rss>

