<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to seperate character data from numeric data</title>
	<atom:link href="http://oraqa.com/2006/01/30/how-to-seperate-character-data-from-numeric-data/feed/" rel="self" type="application/rss+xml" />
	<link>http://oraqa.com/2006/01/30/how-to-seperate-character-data-from-numeric-data/</link>
	<description>Oracle Question and Answer</description>
	<lastBuildDate>Tue, 06 Jul 2010 14:28:12 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: gamyers</title>
		<link>http://oraqa.com/2006/01/30/how-to-seperate-character-data-from-numeric-data/comment-page-1/#comment-97</link>
		<dc:creator>gamyers</dc:creator>
		<pubDate>Tue, 31 Jan 2006 22:59:53 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/30/how-to-seperate-character-data-from-numeric-data/#comment-97</guid>
		<description>Regular expressions in 10G make this a whole lot simpler :

select orig,
       regexp_replace(orig,&#039;[0-9]&#039;,&#039;&#039;,1
       regexp_replace(orig,&#039;[a-zA-Z]&#039;,&#039;
from (select &#039;helloe12te3st&#039; orig from dual);
/

ORIG
-------------
REGEXP_REPLACE(ORIG,&#039;[0-9]&#039;,&#039;&#039;,1,0,&#039;NM&#039;)
--------------------------------------------
REGEXP_REPLACE(ORIG,&#039;[A-ZA-Z]&#039;,&#039;&#039;,1,0,&#039;NM&#039;)
--------------------------------------------
helloe12te3st
helloetest
123</description>
		<content:encoded><![CDATA[<p>Regular expressions in 10G make this a whole lot simpler :</p>
<p>select orig,<br />
       regexp_replace(orig,&#8217;[0-9]&#8216;,&#8221;,1<br />
       regexp_replace(orig,&#8217;[a-zA-Z]&#8216;,&#8217;<br />
from (select &#8216;helloe12te3st&#8217; orig from dual);<br />
/</p>
<p>ORIG<br />
&#8212;&#8212;&#8212;&#8212;-<br />
REGEXP_REPLACE(ORIG,&#8217;[0-9]&#8216;,&#8221;,1,0,&#8217;NM&#8217;)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
REGEXP_REPLACE(ORIG,&#8217;[A-ZA-Z]&#8216;,&#8221;,1,0,&#8217;NM&#8217;)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
helloe12te3st<br />
helloetest<br />
123</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Claudiu Ariton</title>
		<link>http://oraqa.com/2006/01/30/how-to-seperate-character-data-from-numeric-data/comment-page-1/#comment-93</link>
		<dc:creator>Claudiu Ariton</dc:creator>
		<pubDate>Mon, 30 Jan 2006 15:45:26 +0000</pubDate>
		<guid isPermaLink="false">http://oraqa.com/2006/01/30/how-to-seperate-character-data-from-numeric-data/#comment-93</guid>
		<description>I think it is better to use

select replace(translate(data,
replace(translate(data,&#039;0123456789&#039;,&#039;0000000000&#039;),&#039;0&#039;,null),rpad(&#039;z&#039;,length(data),&#039;z&#039;)),&#039;z&#039;,null)
from
(select &#039;hello5623&#039; data from dual)

to extract the numeric data

Best regards,
Claudiu Ariton</description>
		<content:encoded><![CDATA[<p>I think it is better to use</p>
<p>select replace(translate(data,<br />
replace(translate(data,&#8217;0123456789&#8242;,&#8217;0000000000&#8242;),&#8217;0&#8242;,null),rpad(&#8217;z',length(data),&#8217;z')),&#8217;z',null)<br />
from<br />
(select &#8216;hello5623&#8242; data from dual)</p>
<p>to extract the numeric data</p>
<p>Best regards,<br />
Claudiu Ariton</p>
]]></content:encoded>
	</item>
</channel>
</rss>
