To match anything other than letter or number you could try this:
[^a-zA-Z0-9]
And to replace:
var str="dfj,dsf7lfsd .sdklfj";
str = str.replace(/[^A-Za-z0-9]/g, ' ');
To match anything other than letter or number you could try this:
[^a-zA-Z0-9]
And to replace:
var str="dfj,dsf7lfsd .sdklfj";
str = str.replace(/[^A-Za-z0-9]/g, ' ');