question about regexp_substr
From: amonte <ax.mount_at_gmail.com>
Date: Tue, 16 Dec 2014 22:06:50 +0100
Message-ID: <CABV7K9tZK-uxbGu3VjSG3snivt-HwWA2gSkX3ZcZR89Fowopdw_at_mail.gmail.com>
Hi people
Date: Tue, 16 Dec 2014 22:06:50 +0100
Message-ID: <CABV7K9tZK-uxbGu3VjSG3snivt-HwWA2gSkX3ZcZR89Fowopdw_at_mail.gmail.com>
Hi people
I have some difficulty understanding applying an operator to the pattren in regexp_substr. Not sure if anyone can help ?
The question is, what is the difference between these two queries:
select regexp_substr('A1B2C3D4E', '[^0-9]+', 1, 3) from dual;
R
-
C
select regexp_substr('A1B2C3D4E', '[^0-9]*', 1, 3) from dual;
R
-
B
Why * and + gives different answers?
Thanks in advance
Alex
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Dec 16 2014 - 22:06:50 CET