Contact: aviboots(AT)netvision.net.il
39,884 questions
51,810 answers
573 users
let s = "node.js php c++ PHP css c#"; s = s.replace(/ php/g, ' python'); console.log(s); /* run: node.js python c++ PHP css c# */
let s = "node.js php c++ PHP css c#"; s = s.replace(/ php/gi, ' python'); console.log(s); /* run: node.js python c++ python css c# */
let s = "node.js php c++ PHP css c#"; s = s.split('php').join('python'); console.log(s); /* run: node.js python c++ PHP css c# */