std::regex_error::code
From cppreference.com
                    
                                        
                    < cpp | regex | regex error
                    
                                                            
                    |   Defined in header <regex_error>
   | 
||
|   std::regex_constants::error_type code() const;  | 
(since C++11) | |
Returns the std::regex_constants::error_type that was passed to the std::regex_error constructor.
[edit] See Also
|    (C++11)  | 
   describes different types of matching errors   (typedef)  | 
|   constructs a regex_error object  (public member function)  | |