Answers for "checking if a string has only letters cpp"

C++
0

checking if a string has only letters cpp

#include <regex>

bool contains_non_alpha
    = !std::regex_match(name, std::regex("^[A-Za-z]+$"));
Posted by: Guest on October-19-2021

Code answers related to "checking if a string has only letters cpp"

Browse Popular Code Answers by Language