Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: REGEXP_REPLACE doesn't give the desired output
Jure wrote:
> Hi Jim,
>
> as i said I tried to hardcode the timestamp, thus the input to
> REGEXP_REPLACE was a character type.
>
> Another example. Running:
>
> SELECT REGEXP_REPLACE('1234 A B C', '\D', '')
> FROM dual
>
> gives the result:
>
> '1234 A B C'
Perl-influenced operators were introduced in 10.2, so obviously they don't work in 10.1. You need to use equivalent regular expression in 10.1, for example '[^[:digit:]]' or '[^[0-9]]'.
Hth,
Vladimir M. Zakharychev
N-Networks, makers of Dynamic PSP(tm)
http://www.dynamicpsp.com
Received on Tue Jun 20 2006 - 11:56:40 CDT
![]() |
![]() |