Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle For Fun
Niall Litchfield wrote:
> "Billy Verreynne" <vslabs_at_onwe.co.za> wrote in message
> news:1a75df45.0401292119.79108a84_at_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. >> >>;-)
What kind of monster actually documents code. ;-)
-- Daniel Morgan http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp damorgan_at_x.washington.edu (replace 'x' with a 'u' to reply)Received on Fri Jan 30 2004 - 10:03:27 CST