Javascript Remove Not Alphanumeric Characters From String

[Solved] Javascript Remove Not Alphanumeric Characters From String | Vb - Code Explorer | yomemimo.com
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

Answers related to javascript remove not alphanumeric characters from string

Code Explorer Popular Question For Vb