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

Home -> Community -> Usenet -> c.d.o.misc -> Re: return first token/word from string?

Re: return first token/word from string?

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 22 Aug 2007 12:31:21 -0700
Message-ID: <1187811078.984178@bubbleator.drizzle.com>


jobs wrote:
> I'm on Oracle 9i. Is there any built in function that would return the
> first token or string from a string?
>
> For example, given string = " bob lfcr bill"
>
> I want to return "bob"
>
> imediately following bob there might be cases where we have a linefeed/
> cr.
>
> Thanks for any help or information.

Look at REGEXP_SUBSTR
http://www.psoug.org/reference/regexp.html#rerp

-- 
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 Wed Aug 22 2007 - 14:31:21 CDT

Original text of this message

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