Answers for "remove any non alphanumeric from beginning of a string in javascripot"

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

Code answers related to "remove any non alphanumeric from beginning of a string in javascripot"

Code answers related to "Javascript"

Browse Popular Code Answers by Language