Expand description
Regular expressions.
See crate ::regex
.
Modules§
- bytes
- Search for regex matches in
&[u8]
haystacks.
Structs§
- Capture
Locations - A low level representation of the byte offsets of each capture group.
- Capture
Matches - An iterator over all non-overlapping capture matches in a haystack.
- Capture
Names - An iterator over the names of all capture groups in a regex.
- Captures
- Represents the capture groups for a single match.
- Match
- Represents a single match of a regex in a haystack.
- Matches
- An iterator over all non-overlapping matches in a haystack.
- NoExpand
- A helper type for forcing literal string replacement.
- Regex
- A compiled regular expression for searching Unicode haystacks.
- Regex
Builder - A configurable builder for a
Regex
. - Regex
Set - Match multiple, possibly overlapping, regexes in a single search.
- Regex
SetBuilder - A configurable builder for a
RegexSet
. - Replacer
Ref - A by-reference adaptor for a
Replacer
. - SetMatches
- A set of matches returned by a regex set.
- SetMatches
Into Iter - An owned iterator over the set of matches from a regex set.
- SetMatches
Iter - A borrowed iterator over the set of matches from a regex set.
- Split
- An iterator over all substrings delimited by a regex match.
- SplitN
- An iterator over at most
N
substrings delimited by a regex match. - SubCapture
Matches - An iterator over all group matches in a
Captures
value.
Enums§
- Error
- An error that occurred during parsing or compiling a regular expression.
Traits§
- Replacer
- A trait for types that can be used to replace matches in a haystack.
Functions§
- escape
- Escapes all regular expression meta characters in
pattern
.