Remova tudo, exceto o alfabeto e o número Js

myString.replace(/[A-Za-z0-9_]/g, '')
Powerful Pheasant