Contact: aviboots(AT)netvision.net.il
43,934 questions
57,338 answers
573 users
let str = ',,,,,javascript,typescript,node.js,python,,,,'; str = str.replace(/^\s*,+\s*|\s*,+\s*$/g, ''); console.log(str); /* run: javascript,typescript,node.js,python */