#include #include #include int main() { std::regex const pattern { "." }; std::string target { "cette phrase contient un point" }; std::cout << target << " : " << std::boolalpha << std::regex_search(target, pattern) << std::endl; target = "cette phrase contient un point."; std::cout << target << " : " << std::boolalpha << std::regex_search(target, pattern) << std::endl; }