I want to know if a string has any digits, or if there are no digits. Is there a function that easily does this?
C++ – How to test if a string contains any digits in C++
cstring
Related Topic
- C++ – The Definitive C++ Book Guide and List
- C# – Case insensitive ‘Contains(string)’
- Python – Convert bytes to a string
- Python – How to get a substring of a string in Python
- Javascript – How to replace all occurrences of a string in JavaScript
- C++ – the “–>” operator in C/C++
- Javascript – How to check whether a string contains a substring in JavaScript
- Python – Does Python have a string ‘contains’ substring method
Best Answer
Perhaps the following: