let abcde = 'AoBoCoDoEoFoGo';
console.log(abcde.replace(/A|B|C/g, ''));
結果:
oooDoEoFoGo
More than 1 year has passed since last update.
【JavaScript】特定文字を複数除外する。
Last updated at Posted at 2022-09-06
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme