API Reference Character Classes & Escapes
Complete reference for TS-Rex character class and escape methods, including digit, wordChar, anyOf, range, hex, and unicodeProperty.
Boundary Assertions Reference
API reference for TS-Rex boundary methods like startOfInput, endOfInput, and wordBoundary. Learn how to anchor your TypeScript regex patterns.
API Reference Groups & Alternation
Documentation for named capture groups, non-capturing groups, and alternation with .or() in TS-Rex.
API Reference Quantifiers & Repetition
Complete guide to TS-Rex quantifier methods like optional, zeroOrMore, oneOrMore, and how they handle type-safe capture group optionality.
API Reference Lookahead & Lookbehind
Master zero-width lookaround assertions in TS-Rex. Supports nested capture group inference inside lookahead and lookbehind patterns.
API Reference Regex Execution Flags
Detailed guide on regex flags in TS-Rex, including global, ignoreCase, multiline, dotAll, withIndices, and ES2024 unicodeSets.
API Reference CompiledRegex & exec()
Learn about the CompiledRegex interface, the stateless exec method, and the MatchResult discriminated union types.