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 For Fun

Re: Oracle For Fun

From: Billy Verreynne <vslabs_at_onwe.co.za>
Date: 29 Jan 2004 21:19:56 -0800
Message-ID: <1a75df45.0401292119.79108a84@posting.google.com>


"Niall Litchfield" <niall.litchfield_at_dial.pipex.com> wrote

> I'd format this better but couldn't resist a solution with
> only 5 lines in user source...
>
> create or replace function is_phone(phone# in varchar2) return boolean
> is
> begin
> return owa_pattern.MATCH(phone#,'^[0-9]{3}-[0-9]{3}-[0-9]{4}$');
> END;
> /
>

Dammit Niall. You could have won by putting the IS on the first line and making it a 4 line solution.

;-)

--
Billy
Received on Thu Jan 29 2004 - 23:19:56 CST

Original text of this message

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