The type of the object representing the regular expression is std::regex. As with strings, this is a specialization of class std::basic_regex for the character type char. For the character type wchar_t, class std::wregex is provided.
reg1 is initialized by the following regular expression:
.*
This regular expressions checks for “someChars” by using the syn- tax .*, where “.” stands for “any character except newline” and “*” stands for “zero or more times.” Thus, we try to match the format of a tagged XML or HTML value. The character sequence
value matches this pattern, so