I have a string format of MID: ABC-123212-2 - SID: 21354 in a column.
Expected result: ABC-123212-2 and 21354.
Have tried
SELECT REGEXP_SUBSTR('MID: ABC-123212-2 - SID: 21354', '\d[0-9-]*', 1, 1) FROM DUAL;
SELECT REGEXP_SUBSTR('MID: ABC-123212-2 - SID: 21354', '\d[0-9-]*', 1, 2) FROM DUAL;
But the result is only getting the number.
How can I include the letters also, splitting the data by : and middle -