SQL> SQL> SELECT REGEXP_REPLACE('Hubert Horatio Hornblower', 2 '(.*) (.*) (.*)', 3 '\3, \2 \1') "Reformatted Name" 4 FROM dual ; Reformatted Name -------------------------- Hornblower, Horatio Hubert SQL>