When I do it like this:
areport = areport.replace(/\\"/g, "");
areport = areport.replace(/{/g, "");
areport = areport.replace(/}/g, "");
areport = areport.replace(/[\[\]']+/g, "");
areport = areport.replace(/,/g, "");
areport = areport.replace(/"/g, "");
areport = areport.replace(/\\/g, "");
areport = areport.replace(/null/g, "");
It works, however when I do it like this:
areport = areport.replace(/\[\]\/\\,\{\}\"null/g, "");
It doesn't. I've checked it with 'regex101' and it returns "g modifier: global. All matches (don't return after first match)" so I attempted to rearrange the order but to no avail. Please show me the error of my ways. Thanks.