Answers for "remove non alphanumeric characters from string javascript"

5

remove non alphanumeric characters javascript

input.replace(/\W/g, '') //doesnt include underscores


input.replace(/[^0-9a-z]/gi, '') //removes underscores too
Posted by: Guest on June-01-2020
0

replace non alphanumeric javascript

text.replace(/[\W_]+/g," ");
Posted by: Guest on March-29-2020

Code answers related to "remove non alphanumeric characters from string javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language