Expand description
A collection of modules that provide APIs that are useful across many regex engines.
While one should explore the sub-modules directly to get a sense of what’s there, here are some highlights that tie the sub-modules to higher level use cases:
alphabetcontains APIs that are useful if you’re doing low level things with the DFAs in this crate. For example, implementing determinization or walking its state graph directly.capturescontains APIs for dealing with capture group matches and their mapping to “slots” used inside an NFA graph. This is also where you can find iterators over capture group names.escapecontains types for pretty-printing raw byte slices as strings.itercontains API helpers for writing regex iterators.lazycontains a no-std and no-alloc variant oflazy_static!andonce_cell.lookcontains APIs for matching and configuring look-around assertions.poolprovides a way to reuse mutable memory allocated in a thread safe manner.prefilterprovides APIs for building prefilters and using them in searches.primitivesare what you might use if you’re doing lower level work on automata, such as walking an NFA state graph.syntaxprovides some higher level convenience functions for interacting with theregex-syntaxcrate.wireis useful if you’re working with DFA serialization.
Modules§
- alphabet
- This module provides APIs for dealing with the alphabets of finite state machines.
- captures
- Provides types for dealing with capturing groups.
- escape
- Provides convenience routines for escaping raw bytes.
- interpolate
- Provides routines for interpolating capture group references.
- iter
- Generic helpers for iteration of matches from a regex engine in a haystack.
- lazy
- A lazily initialized value for safe sharing between threads.
- look
- Types and routines for working with look-around assertions.
- pool
- A thread safe memory pool.
- prefilter
- Defines a prefilter for accelerating regex searches.
- primitives
- Lower level primitive types that are useful in a variety of circumstances.
- start
- Provides helpers for dealing with start state configurations in DFAs.
- syntax
- Utilities for dealing with the syntax of a regular expression.
- wire
- Types and routines that support the wire format of finite automata.