Expand description
The idiomatic Rust API. Regex compiles and searches a pattern,
RegexBuilder sets its options and syntax, and Match, Captures and
FindIter report what a search found. It wraps the C-port functions
onig_new and onig_search.
Structs§
- Capture
Matches - Iterator over the capture groups of all non-overlapping matches in a text.
- Capture
Names - Iterator over the names of the capture groups, from
Regex::capture_names. - Captures
- All capture groups from a single match.
- Captures
Iter - Iterator over capture groups in a
Captures. - Find
Iter - Iterator over all non-overlapping matches in a text.
- Match
- A single match result referencing the original text.
- Regex
- A compiled regular expression.
- Regex
Builder - Builder for compiling a
Regexwith custom options. - Search
Options - Limits for a single search.
- TryCapture
Matches - Iterator over the capture groups of matches that applies
SearchOptionsto each search. - TryFind
Iter - Iterator over matches that applies
SearchOptionsto each search.
Enums§
- Syntax
- A built-in regex syntax definition.