How should I modify the following such that the accented letter É is matched and the expression returns True?
StringMatchQ["Éta", RegularExpression["[a-zA-Z]+"]]
How should I modify the following such that the accented letter É is matched and the expression returns True?
StringMatchQ["Éta", RegularExpression["[a-zA-Z]+"]]
One possibility:
StringMatchQ["Éta", RegularExpression["[[:alpha:]]+"]]
RegularExpression I see only listing of named classes of characters: alnum, alpha, ascii, blank, cntrl, digit, graph, lower, print, punct, space, upper, word, xdigit. Some of them have self-explanatory names like ascii, digit etc. but some (like alpha) have not obvious meanings. Where can I learn about them?
– Alexey Popkov
Jan 16 '13 at 10:36