確かにそうやね
結果見たらいらないなと思ってしまったわ
replace(/A/g, "") 46
replaceAll(str, "") 56
replaceAll(/A/g, "") 60
replaceAll(”A”, "")432