Answers for "see if char in string"

C++
4

check if char in string c++

std::string s = "hell[o";
if (s.find('[') != std::string::npos)
    ; // found
else
    ; //
Posted by: Guest on September-14-2020
0

How to check if a char is a letter

function isCharacterALetter(char) {
  return (/[a-zA-Z]/).test(char)
}
Posted by: Guest on December-16-2021

Code answers related to "see if char in string"

Browse Popular Code Answers by Language