Hi! I need to escape double quotes only: test=# select regexp_replace('"""{Performer,"Boomwacker ""a"" Recording""}"""', '([^"])"{2}([^"])', '\1\"\2', 'g'); regexp_replace ------------------------------------------------- """{Performer,"Boomwacker \"a"" Recording\"}"""
This is unexpected result. But when added one symbol to ""a"" the result is right: test=# select regexp_replace('"""{Performer,"Boomwacker ""a1"" Recording""}"""', '([^"])"{2}([^"])', '\1\"\2', 'g'); regexp_replace -------------------------------------------------- """{Performer,"Boomwacker \"a1\" Recording\"}"""
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных