from what i researched, the expression "[:alpha:]" will be matched for any alphabetic character, but the expression only match for lowercase character and not uppercase character. I not sure what's wrong with it.
std::regex e ("[:alpha:]");
if(std::regex_match("A",e))
std::cout<<"hi";
else
std::cout<<"no";
[[:alpha:]]
– Hastate[[:alpha:]]
is a character class that matches any alphabetic character.[abc[:digit:]]
is a character class that matchesa
,b
,c
, or a digit. – Exhort