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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Remove numbers from string

RE: Remove numbers from string

From: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Mon, 01 Jul 2002 17:26:55 -0800
Message-ID: <F001.0048D626.20020701172655@fatcity.com>


This is clever!

Waleed

-----Original Message-----
[mailto:walter.kirsch-eds_at_eds.com]
Sent: Monday, July 01, 2002 5:33 PM
To: Multiple recipients of list ORACLE-L

Actually, it's simpler to use the trick

select translate('abc123def432', '~1234567890','~') from dual;

-----Original Message-----
Sent: Monday, July 01, 2002 4:23 PM
To: Multiple recipients of list ORACLE-L

Yes, use regular expressions via the owa_pattern package.

Here's an example:

declare

   tstr varchar2(100) := 'this c34ontains s0239everal 2340 numeric 882 dig2its';
begin

   dbms_output.put_line( tstr);

Jared

Nils Höglund <nils_at_naqua.se>
Sent by: root_at_fatcity.com
07/01/2002 04:18 AM
Please respond to ORACLE-L  

        To:     Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
        cc: 
        Subject:        Remove numbers from string



Is there any way to remove all numbers from a string?

The string might look like this: 'abc123def432' and I wan't it to look like this: 'abcdef'.

I'm using Oracle 8.

Thanks in advance!

--

/Nils Höglund, Naqua KB

E-mail:         nils_at_naqua.se
Web:            http://www.naqua.se/
Home Phone:     +46 (0)18  30 09 19
Cellular Phone: +46 (0)709 91 97 65
Address:        Nya Valsätrav. 26 B
                SE-756 46
                Uppsala, Sweden

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: =?iso-8859-1?Q?Nils_H=F6glund?=
  INET: nils_at_naqua.se
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: Jared.Still_at_radisys.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Kirsch, Walter J (Northrop Grumman)   INET: walter.kirsch-eds_at_eds.com
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Khedr, Waleed
  INET: Waleed.Khedr_at_FMR.COM
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Mon Jul 01 2002 - 20:26:55 CDT

Original text of this message

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