157
rated 0 times
[
162]
[
5]
/ answers: 1 / hits: 86754
/ 11 Years ago, tue, october 8, 2013, 12:00:00
I have a string like
var str= , this, is a ,,, test string , , to find regex,,in js. , ;
in which there are multiple spaces in beginning,middle and end of string with commas. i need this string in
var str=this is a test string to find regex in js.;
i found many regex in forum removing spaces , commas separately but i could not join them to remove both.
Please give explanation of regex syntex to if possible .
Thanks in advance
More From » regex