Features#
New here? Getting started is the first hour: install and a first match.
Every construct REAL accepts, rejects, or extends beyond Python re — one row,
one status. Excluded by design is a closed door, not a missing feature: each
of those constructs makes matching super-linear and would reopen the ReDoS door
this engine exists to close — rationale on
the divergences page.
Core
Construct |
Status |
Notes |
|---|---|---|
Literals, concatenation & alternation |
supported |
the base regular-language operators — |
|
supported |
excludes |
Character classes & ranges |
supported |
compiled to the canonical UTF-8-ranges automaton in code-point mode — |
|
supported |
Unicode-aware in text mode, ASCII under |
Anchors |
supported |
|
Quantifiers |
supported |
compiled to the bounded, linear Thompson/Pike VM — |
Groups (capturing, non-capturing, named) |
supported |
capture is write-only – there is no backreference to read it — |
Lookahead & lookbehind (bounded) |
supported |
REAL’s ReDoS-safe bounded lookaround — |
Possessive quantifiers |
supported |
over a single atom, or one wrapped in one capturing group – linear, ReDoS-safe; |
Atomic groups |
supported |
single atom or one-capture body – linear; |
ASCII case-insensitive matching ( |
supported |
byte-for-byte ASCII fold; Unicode-aware folding is a text-mode extension of this — |
Multiline mode ( |
supported |
|
Unicode
Construct |
Status |
Notes |
|---|---|---|
|
supported |
General_Category + Script + Script_Extensions + the standard binary properties; native, linear |
|
supported |
binding resolves the name via |
|
extension |
PCRE2-style; uniform C++/Python surfaces – |
Anchors & lookaround extensions
Construct |
Status |
Notes |
|---|---|---|
|
supported |
exact alias of |
Variable-width lookbehind |
extension |
bounded, so still linear; |
Word-edge anchors |
extension |
word-start / word-end; |
Escapes & classes
Construct |
Status |
Notes |
|---|---|---|
Octal escapes in a class |
supported |
every |
POSIX |
supported |
exact |
Flags
Construct |
Status |
Notes |
|---|---|---|
Global flags |
supported |
|
Scoped inline flags |
supported |
per-scope |
Excluded by design
Construct |
Status |
Notes |
|---|---|---|
Backreferences |
excluded by design |
non-regular -> super-linear -> ReDoS — |
Conditional groups |
excluded by design |
non-regular control flow -> ReDoS — |