Contact: aviboots(AT)netvision.net.il
41,160 questions
53,652 answers
573 users
let s = "node.js php c++ PHP css python"; s = s.replace(/p/g, "*"); console.log(s); /* run: node.js *h* c++ PHP css *ython */
let s = "node.js php c++ PHP css python"; s = s.split('p').join('*'); console.log(s); /* run: node.js *h* c++ PHP css *ython */
let s = "node.js php c++ PHP css python"; s = s.replace(/p/gi, "*"); console.log(s); /* run: node.js *h* c++ *H* css *ython */