Contact: aviboots(AT)netvision.net.il
35,552 questions
46,450 answers
573 users
let s: string = " typescript php nodejs "; s = s.replace(/(^\s*)|(\s*$)/g, ''); console.log(s); /* run: "typescript php nodejs" */
let s: string = " typescript php nodejs "; s = s.trim(); console.log(s); /* run: "typescript php nodejs" */