How to check if a string contains [a-zA-Z] characters only?
[a-zA-Z]
Example:
var str = \'123z56\';
All these answers are correct, but I had to also check if the string contains other characters and Hebrew letters so I simply used:
if (!str.match(/^[\d]+$/)) { //contains other characters as well }