CREATE OR REPLACE FUNCTION comptaproc.trg_remove_script_tag() RETURNS trigger LANGUAGE plpgsql AS $function$ begin NEW.agc_comment_raw:= regexp_replace(NEW.agc_comment_raw, '