I want to match a string to make sure it contains only letters.
I\'ve got this and it works just fine:
var onlyLetters = /^[a-zA-Z]*$/.test(myString)
You could use a blacklist - a list of characters to exclude.
Also, it is important to verify the input on server-side, not only on client-side! Client-side can be bypassed easily.