C++ Language/Std/Strings/RegularExpressions

From Wikibooks, open books for an open world
Jump to navigation Jump to search

The std::regex_match() function compares an input string against the regular expression pattern stored in a std::regex object. The result of that matching is output into a std::cmatch object (which can be converted into a std::string by str()).

Additional information about regular expressions (includes interactive examples)