How can I write a regex that matches only letters?
Just use \w or [:alpha:]. It is an escape sequences which matches only symbols which might appear in words.
\w
[:alpha:]
You can try this regular expression : [^\W\d_] or [a-zA-Z].
[^\W\d_]
[a-zA-Z]