We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

regex_error Class

Reports a bad basic_regex object.

class regex_error
    : public std::runtime_error {
    explicit regex_error(regex_constants::error_code error);
    regex_constants::error_code code() const;

The class describes an exception object thrown to report an error in the construction or use of a basic_regex object.

Header: <regex>

Namespace: std