I've found many solutions in JavaScript to remove all spaces in a string with \s. But I can't found a solution for my specific problem. I want to transform "2* 2 +3* 5" in "2*2+3*5" (no more space after '*'), I've tried with
mot = mot.replace(/*\s/g, '*');
But it doesn't work, does anyone have the answer?