for my pl/sql procedure i have to extract the submatches from a text field and insert those values into another table...
The Regex is something like: /^(xyz|abc)(\w{3,3})(\d{0,2})(\d{2,2})(a|ab|ef)$/
so what i want is basically something like this in pseudo-sql:
select
rtbl.1, -- should return xyz
rtbl.2, -- should return GGG
rtbl.3, -- should return 1
rtbl.4, -- should return xyz
rtbl.5 -- should return ef
from regex('xyzGGG122ef', /^(xyz|abc)(\w{3,3})(\d{0,2})(\d{2,2})(a|ab|ef)$/) rtbl;
how can this be done?