May 2017
Intermediate to advanced
590 pages
17h 18m
English
In order to verify that a string matches a regular expression, perform the following steps:
#include <regex> #include <string> using namespace std::string_literals;
auto pattern {R"(^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$)"s};
auto rx = std::regex{pattern};
Read now
Unlock full access