Contact: aviboots(AT)netvision.net.il
39,859 questions
51,780 answers
573 users
s = "php \r\n javascript nodejs \r\n c \t\t c++ python \r\n c#\n"; s = s.replace((/ |\r\n\t|\n|\r|\t/gm),""); console.log(s); /* run: php javascript nodejs c c++ python c# */
s = "php \r\n javascript nodejs \r\n c \t\t c++ python \r\n c#\n"; s = s.replace(/[\r\n\t]/g, ""); console.log(s); /* run: php javascript nodejs c c++ python c# */