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: Grabowy, Chris <cgrabowy_at_fcg.com>
Date: Tue, 02 Jul 2002 09:14:16 -0800
Message-ID: <F001.0048E0E9.20020702091416@fatcity.com>


Sigh. There are way too many packages in Oracle. Thanks Jared. I have to share this with a developer struggling to write some parsing functions.

I'll take back all the bad reviews I posted on bookpool.com about your book...

-----Original Message-----
Sent: Tuesday, July 02, 2002 12:57 AM
To: ORACLE-L_at_fatcity.com; Grabowy, Chris

No, I checked on my 8.1.7.3 database first, and it's there.

I don't have app server installed. I have the source to the package anyway. Don't know if it's wrapped now or not, but I don't think so...

Nope, not wrapped:

$ORACLE_HOME/rdbms/admin/pubpat.sql
$ORACLE_HOME/rdbms/admin/privpat.sql

Jared

On Monday 01 July 2002 13:48, Grabowy, Chris wrote:
> JS,
>
> Doesn't that owa_pattern package come from the PL/SQL Web Toolkit, which
> requires that you have the Oracle App Server licensed??
>
> -----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);
> -- remove the digits
> owa_pattern.change( tstr, '\d', '', 'g');
> dbms_output.put_line( tstr);
> -- remove the extra spaces
> owa_pattern.change( tstr, '\s+', ' ', 'g');
> dbms_output.put_line( tstr);
> end;
> /
>
> 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!

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Grabowy, Chris
  INET: cgrabowy_at_fcg.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 Tue Jul 02 2002 - 12:14:16 CDT

Original text of this message

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