Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript keep only letters in string

let strWOnlyLetters = "$69%)#$%onlyLetters69_69#$@.replace(/[^a-zA-Z]/g,"");
console.log(strWOnlyLetters);
//-> "onlyLetters"
 
PREVIOUS NEXT
Tagged: #javascript #letters #string
ADD COMMENT
Topic
Name
9+4 =