Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: pl/sql - pattern matching / regular expressions
You can do this using the substr and instr functions:
select
substr('[www.oracle.com|go to oracle]', 1, instr ('[www.oracle.com|go to
oracle]', '|')-1)
from dual
HTH,
Christopher Latta
knight <nospam_at_newsranger.com> wrote in message
news:TH0V6.3534$pb1.130551_at_www.newsranger.com...
> I am trying to match a specific line in my data and as a beginner am
wondering
> how to do this.
>
> The pattern to match would be eg:
>
> [www.oracle.com|go to oracle]
>
> With this info matched I would then like to split this info on the '|'
>
> Can be done with Perl - but how with pl/sql?
Received on Mon Jun 11 2001 - 08:20:14 CDT
![]() |
![]() |