How To Extract a Fixed Length Number from a String
Hi
I have a requirement to find all the 9 digit numbers from a string with any delimiter.
I have tried
SELECT REGEXP_SUBSTR(REPLACE('12345678978979798ZXC3ASD456FGH8TED63456789123',' '),'[[:digit:]]{9}') FROM dual
WHERE REGEXP_SUBSTR(REPLACE('12345678978979798ZXC3ASD456FGH8TED63456789123',' '),'[[:digit:]]{9}') IS NOT NULL;
It Gives me 123456789
But I want output as
123456789 634567891
Please Help.
Thanks
G