I want to do something like this
SELECT REGEXP_REPLACE('some_string','(.*)(.*)',some_function_that_returns_string('\2',' \1'));
Is this possible at all?