30 Regular expressions library [re]

30.11 Regular expression algorithms [re.alg]

30.11.1 Exceptions [re.except]

The algorithms described in subclause [re.alg] may throw an exception of type regex_­error.
If such an exception e is thrown, e.code() shall return either regex_­constants​::​error_­complexity or regex_­constants​::​error_­stack.