Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle string issue
nilaybhagat_at_gmail.com wrote:
> Im using Oracle 9.2 and I am having trouble extracting digits from a
> string. I tried using LIKE %[0-9]% but this version does not support
> that. I also cannot use regular expressions for that same reason. Is
> there an easier way to identify digits or do I have to create a
> function to do that.
>
> Thanks!
The translate function might help:
SELECT TRANSLATE (upper('This 1 string 2 contains 3 digits 4!')
,'1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ !' ,'1234567890' )
HTH
Chris
Received on Mon Oct 16 2006 - 11:25:18 CDT