I am extracting a character in a Javascript string with:
var first = str.charAt(0);
and I would like to check whether it is a letter. Stran
I believe this plugin has the capabilities you seek: http://xregexp.com/plugins/ (github link: https://github.com/slevithan/xregexp)
With it you can simply match all unicode letters with \p{L}
.
Read the header of this source file to see which categories it supports: http://xregexp.com/plugins/xregexp-unicode-categories.js