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)
This can be tricky, unfortunately JavaScript has pretty poor support for internationalization. To do this check you'll have to create your own character class. This is because for instance, \w is the same as [0-9A-Z_a-z] which won't help you much and there isn't anything like [[:alpha:]] in Javascript. But since it sounds like you're only going to use one other langauge you can probably just add those other characters into your character class.
By the way, I think you'll need a ? or * in your regexp there if myString can be longer than one character.
The full example,
/^[a-zA-Zéüöêåø]*$/.test(myString);