28 Text processing library [text] (original) (raw)

Table 118 β€” 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.