Usuń JavaScript znaków nie alfanumerycznych
input.replace(/\W/g, '') //doesnt include underscores
input.replace(/[^0-9a-z]/gi, '') //removes underscores too
Annoying Ant
input.replace(/\W/g, '') //doesnt include underscores
input.replace(/[^0-9a-z]/gi, '') //removes underscores too
text.replace(/[\W_]+/g," ");