Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

REGEXP_SUBSTR doesn't returns the second group

1ca71675-03b2-4d5e-842a-7c492ce1e323Sep 11 2015 — edited Sep 11 2015

(occuranHi! Need some help. I'm trying to use regexp_substr to get number from string. But Oracle returns me NULL when I choose the second match.

INPUT STRING:

Line #255: 05:59:51.050639000 : start process fill 188234978

When I choose the first match (by default) - it returns:

start process fill 188234978

SQL:

select REGEXP_SUBSTR('Line #255: 05:59:51.050639000 : start process fill 188234978', '(start process fill )(\w+)',1,2)

from dual


Why?


Oracle Database 11.2.0.4.0 x64

This post has been answered by odie_63 on Sep 11 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 9 2015
Added on Sep 11 2015
6 comments
652 views