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!

How to use REGEX_SUBSTR to extract group from regular expression in Oracle 11g

user12002352Nov 17 2016 — edited Nov 17 2016

I have the following REGEX example that works in my testing tools (java) but not in Oracle

SELECT REGEXP_SUBSTR ('conn-conf-set:ttv|hsia,up-speed-kbps:5000,dn-speed-kbps:17000', '(?:up-speed-kbps:)([\d]+)')
AS upstream_rate
FROM DUAL

I just want 5000 returned, I can get it return up-speed-kbps:5000 if I use 'up-speed-kbps:(\d+)'

This post has been answered by sdstuber on Nov 17 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2016
Added on Nov 17 2016
1 comment
2,338 views