Re: regexp_substr help, please
- From: spambait@xxxxxxxxxx (Doug Miller)
- Date: Tue, 29 Apr 2008 16:56:40 GMT
In article <4817502b$1@xxxxxxxxxxxxxxxxxxx>, yf110@xxxxxxxxxxxxxxxxxxx (Malcolm Dew-Jones) wrote:
Doug Miller (spambait@xxxxxxxxxx) wrote:
: I need to be able to pull just the last name out of a string consisting of
: lastname and firstname, separated by a comma, or space, or comma and space.
: Complicating matters somewhat is the fact that lastname might be something
: like "Mc Kay" or "St. Louis" so simply grabbing everything before the first
: space isn't sufficient.
: The closest I've come so far is
: select regexp_substr ('St. Louis, Ted', '.{4}[A-Z]+') from dual;
: but this returns only
: St. L
[A-Z] doesn't match o
Yeah, I just got back from lunch and realized the same thing. Knew it had to
be something stupid like that. Thanks.
.
- References:
- regexp_substr help, please
- From: Doug Miller
- Re: regexp_substr help, please
- From: Malcolm Dew-Jones
- regexp_substr help, please
- Prev by Date: Re: regexp_substr help, please
- Next by Date: Re: oracle 9i: errors by clone a DB by a script
- Previous by thread: Re: regexp_substr help, please
- Next by thread: Re: regexp_substr help, please
- Index(es):
Relevant Pages
|