Module hybrid
Source - Cache
- A cache represents a partially computed forward and reverse DFA.
- FindMatches
- An iterator over all non-overlapping matches for an infallible search.
- Regex
- A regular expression that uses hybrid NFA/DFAs (also called “lazy DFAs”)
for searching.
- find
- Returns the start and end offset of the leftmost match. If no match
exists, then
None
is returned. - find_iter
- Returns an iterator over all non-overlapping leftmost matches in the
given bytes. If no match exists, then the iterator yields no elements.
- try_search
- Returns the start and end offset of the leftmost match. If no match
exists, then
None
is returned. - try_search_fwd
- Executes a forward search and returns the end position of the leftmost
match that is found. If no match exists, then
None
is returned. - try_search_rev
- Executes a reverse search and returns the start of the position of the
leftmost match that is found. If no match exists, then
None
is
returned.