Contact: aviboots(AT)netvision.net.il
39,914 questions
51,847 answers
573 users
let str = "CPP NodeJS CPP Python PHP CPP"; const word = "CPP"; const re = new RegExp(word, "gi"); str = str.replace(re, "C"); console.log(str); /* run: C NodeJS C Python PHP C */