30 Regular expressions library [re]

30.4 Namespace std​::​regex_­constants [re.const]

30.4.4 Implementation-defined error_­type [re.err]

Table 142: error_­type values in the C locale [tab:re.err]
Value
Error condition
error_­collate
The expression contains an invalid collating element name.
error_­ctype
The expression contains an invalid character class name.
error_­escape
The expression contains an invalid escaped character, or a trailing escape.
error_­backref
The expression contains an invalid back reference.
error_­brack
The expression contains mismatched [ and ].
error_­paren
The expression contains mismatched ( and ).
error_­brace
The expression contains mismatched { and }
error_­badbrace
The expression contains an invalid range in a {} expression.
error_­range
The expression contains an invalid character range, such as [b-a] in most encodings.
error_­space
There is insufficient memory to convert the expression into a finite state machine.
error_­badrepeat
One of *?+{ is not preceded by a valid regular expression.
error_­complexity
The complexity of an attempted match against a regular expression exceeds a pre-set level.
error_­stack
There is insufficient memory to determine whether the regular expression matches the specified character sequence.