Search
In this lesson, we'll see the implementation of the second look-up function for regex statements: regex_search.
std::regex_search
checks if text contains a text pattern. You can use the function with and without a std::match_results
object and apply it to a C string, a C++ string or a range.
The example below shows how to use std::regex_search
with texts of type const char*
, std::string
, const wchar_t*
and std::wstring
.
Get hands-on with 1400+ tech skills courses.