Search
 
SCRIPT & CODE EXAMPLE
 

CPP

checking if a string has only letters cpp

#include <regex>

bool contains_non_alpha
    = !std::regex_match(name, std::regex("^[A-Za-z]+$"));
Comment

PREVIOUS NEXT
Code Example
Cpp :: c++ keyboard input 
Cpp :: what is c++ standard library 
Cpp :: c++ how to add something at the start of a vector 
Cpp :: fast way to check if a number is prime C++ 
Cpp :: remove from vector by value c++ 
Cpp :: c++ add two matrix 
Cpp :: string to upper c++ 
Cpp :: string to integer in c++ 
Cpp :: how to input a vector when size is unknown 
Cpp :: c++ rand include 
Cpp :: long to string cpp 
Cpp :: c++ pass array to a function 
Cpp :: cpp absolute value 
Cpp :: stl vector 
Cpp :: json::iterator c++ 
Cpp :: new float array c++ 
Cpp :: string length in c++ 
Cpp :: find in vector 
Cpp :: error handling in c++ 
Cpp :: convert kelvin to Fahrenheit 
Cpp :: quicksort 
Cpp :: how to initialize 2d array with values c++ 
Cpp :: c++ auto 
Cpp :: vectors c++ 
Cpp :: read string with spaces in c++ 
Cpp :: c++ read matttrix from text file 
Cpp :: how to sort array in c++ stockoverflow 
Cpp :: one away coding question 
Cpp :: loop execution descending order in c++ 
Cpp :: copy constructor c++ syntax 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =