[re.except]

# 28 Text processing library [[text]](./#text)

## 28.6 Regular expressions library [[re]](re#except)

### 28.6.10 Regular expression algorithms [[re.alg]](re.alg#re.except)

#### 28.6.10.1 Exceptions [re.except]

[1](#1)

[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L11719)

The algorithms described in subclause [[re.alg]](re.alg "28.6.10 Regular expression algorithms") may throw an exception
of type regex_error[.](#1.sentence-1)

If such an exception e is thrown,e.code() shall return either regex_constants​::​error_complexity or regex_constants​::​error_stack[.](#1.sentence-2)
