Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Regexp rant

0 views
Skip to first unread message

sna...@gmail.com

unread,
Jun 19, 2006, 10:51:40 AM6/19/06
to
Great, Oracle have implemented "REGEXP_LIKE" for database queries! Now
how do I do regexp matching in procedural code? It's enfuriating to
have a feature that is so tantalizingly close...

Phil Hibbs.

DA Morgan

unread,
Jun 19, 2006, 11:38:08 AM6/19/06
to

It is unclear what it is you are trying to do that you can't do with
REGEXP_LIKE, REGEXP_INSTR, and REGEXP_REPLACE. Could you clarify your
intent.
--
Daniel A. Morgan
University of Washington
damo...@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org

sna...@gmail.com

unread,
Jun 19, 2006, 12:34:22 PM6/19/06
to
DA Morgan wrote:
> It is unclear what it is you are trying to do that you can't do with
> REGEXP_LIKE, REGEXP_INSTR, and REGEXP_REPLACE. Could
> you clarify your intent.

I'll get my coat...

Phil Hibbs.

Malcolm Dew-Jones

unread,
Jun 19, 2006, 5:15:41 PM6/19/06
to
sna...@gmail.com wrote:

???

I'm using some version of 10g database and at least in this version you
simply use those functions in pl/sql code.

e.g. find the position of the last vowel in a string s

i := regexp_instr(s,'[aeiou][^aeiou]*$');

DA Morgan

unread,
Jun 19, 2006, 6:02:10 PM6/19/06
to

And what is it precisely you are trying to do that can not be done with
the current tool set? It is extremely hard to help you if you can't be
specific and provide an example.

.. snarks ... get your hat too. This may take awhile. ;-)

sna...@gmail.com

unread,
Jun 20, 2006, 4:55:36 AM6/20/06
to
sna...@gmail.com wrote:
> : I'll get my coat...

Malcolm Dew-Jones wrote:
> ???

Er, sorry, that might not be an expression that has made it across the
pond. It's a line from a comedy programme in which someone makes a huge
blunder in a social situation, like thinking that the serious high-brow
Shakespeare conversation is all about Leonardo di Caprio's films, and
when he realises that he has blundered, gets up and says "I'll get me
coat" and leaves the group, so great is his embarrassment.

So, that was me saying "Ah, I've blundered, I can't show my face round
here any more". It turns out I've been testing these functions on a 9i
installation, which explains why they weren't working, and I assumed
that they were only available in SQL SELECT statements, not plain
variable assignment expressions.

Phil Hibbs.

DA Morgan

unread,
Jun 21, 2006, 12:06:14 PM6/21/06
to

Thanks. Another bit of culture cross the pond.

0 new messages