Question : remove non alphanumeric characters javascript
Answered by : annoying-ant-81pfv1uy1lb0
input.replace(/\W/g, '') //doesnt include underscores
input.replace(/[^0-9a-z]/gi, '') //removes underscores too
Source : | Last Update : Mon, 08 Jun 20
Question : remove non-alphanumeric characters and space javascript
Answered by : daniel-hemmati
str.toLowerCase().replace(/\s+|\W/g, '')
Source : | Last Update : Fri, 29 Jul 22