I am using this expression: /\W+/g to match all characters that are not numbers, letters and spaces. It seems to be including spaces. How would I build a regex that did not include spaces?
I am using this expression: /\W+/g to match all characters that are not numbers,
Share
Explanation: