javascript keep only letters in string

Solutions on MaxInterview for javascript keep only letters in string by the best coders in the world

showing results for - "javascript keep only letters in string"
Desiree
23 Jan 2019
1let strWOnlyLetters = "$69%)#$%onlyLetters69_69#$@.replace(/[^a-zA-Z]/g,"");
2console.log(strWOnlyLetters);
3//-> "onlyLetters"