正则匹配json格式中未被转义的双引号 2019-08-02 本文已影响0人 mtian999 var str=''; str.replace(/((?<=\")|(?<=[^:])("))(\.*?)((?=\"\")|(?=\"[^,^}]))/ig,'\\$1');