How to remove all the non-alphanumeric characters from a string using JavaScript?
Originally Published Here ๐!
To remove all the non-alphanumeric characters from a string, we can use a regex expression that matches all the characters except a number or an alphabet in JavaScript.
TL;DR
// a string
const str = "#HelloWorld123$%";
...
melvingeorge-me.hashnode.dev2 min read