i want to replace all of characters are not match with my string, for example i have:
- <script>
- var word = "my~wo@rd 12$3";
- var regx = "/^[a-z0-9]+$/";
- word = word.replace(eval(regx), '');
- </script>
without any other regular expressions, how i can get this result: