By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
SELECT REGEXP_REPLACE('Only, Last, comma, will be, replaced,', ',$', '');
REGEXP_REPLACE('Only, Last, comma, will be, replaced,', ',$', '') |
---|
Only, Last, comma, will be, replaced |