I\'m looking for a neat RegEx solution to replace
Be aware, that \W leaves the underscore. A short equivalent for [^a-zA-Z0-9] would be [\W_]
\W
[^a-zA-Z0-9]
[\W_]
text.replace(/[\W_]+/g," ");
\W is the negation of shorthand \w for [A-Za-z0-9_] word characters (including the underscore)
\w
[A-Za-z0-9_]
Example at regex101.com