Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: [Q] Removing all characters except some

Re: [Q] Removing all characters except some

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Wed, 3 Dec 2003 13:13:05 -0000
Message-ID: <3fcde162$0$9394$ed9e5944@reading.news.pipex.net>


It sounds like you need regular expressions for which you most probably will need to load a java regexp package into the db and then create a pl/sql wrapper function for it. There is also a pattern match function in the owa package which may help you out.

-- 
Niall Litchfield
Oracle DBA
Audit Commission UK
"Peter Amberg" <son42uk_at_yahoo.co.uk> wrote in message
news:f8232d10.0312030449.38c691aa_at_posting.google.com...

> I have a VARCHAR column in some table T. How can I zap away all
> characters from the string except digits? I need this in a SELECT
> clause, I need to order the entries by the integer values within the
> string. There may be non-digit characters anywhere in the string, I
> can't just use SUBSTR.
>
> Any help greatly appreciated!
>
> Peter
Received on Wed Dec 03 2003 - 07:13:05 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US