I know to select all matched occurrences by a regular expression to one column in multiple rows as below:
SELECT REGEXP_SUBSTR(str, '\+?\d{3,11}', 1, LEVEL) AS substr
FROM (
SELECT 'Txa233141b Ta233141 Ta233142 Ta233147 Ta233148' AS str FROM DUAL
)
CONNECT BY LEVEL <= LENGTH(REGEXP_REPLACE(str, '[^ ]+')) + 1;
the result is
233141
233141
233142
233147
233148
But I want to the result as below, what can I do?
233141,233141,233142,233147,233148