I have to replace ; , " and ' chars in an string putting its correspondent ascii value I have a Replace(Replace(Replace(Replace($$Text,with;On'It"$$,',','chr(59)'),';','chr(44)'),'"','chr(34)'),'''','chr(39)') It works but I would like to call just one Replace. I tried this but didn´t work select regexp_replace($$Text,with;On'It"$$,$$,|;|"|'$$,$$chr(59)|chr(44)|chr(34)|chr(39)$$,'g'); , -> chr(59) ; -> chr(44) " -> chr(34) ' -> chr (39) -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html