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

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle string issue

Re: Oracle string issue

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 16 Oct 2006 13:19:53 -0700
Message-ID: <1161029988.246543@bubbleator.drizzle.com>


Anthony wrote:
> I think the regular expression is only supported in Oracle 10g
>

They are supported, to a limited extent, in previous versions via the OWA_PATTERN built-in package. For example:

CREATE OR REPLACE FUNCTION owa_match(phone# VARCHAR2) RETURN BOOLEAN IS BEGIN
   RETURN owa_pattern.MATCH(phone#,'^[0-9]{3}-[0-9]{3}-[0-9]{4}$'); END owa_match;
/

But it was extremely inefficient.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Mon Oct 16 2006 - 15:19:53 CDT

Original text of this message

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