C++

Check If Any Element in Array Matches Regex Pattern in C++

This tutorial will discuss about a unique way to check if any element in array matches regex pattern in C++. The std::regex_match() function from the <regex> header file, accepts a string as the first argument and a regex pattern as the second argument. It returns true if the given string matches the given regex pattern. […]

Check If Any Element in Array Matches Regex Pattern in C++ Read More »

Check if any element in array contains string in C++

This tutorial will discuss about a unique way to check if any element in array contains string in C++. To check any string element in an array contains a sepcific string, we will use the std::any_of() function from STL Algorithms. The std::any_of() function accepts three arguments, The std::any_of() function will apply the given Lambda function

Check if any element in array contains string in C++ Read More »

Scroll to Top