Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

API Reference

Overview of the main API types and methods.

Main Types

TypeDescription
FuzzyRegexCompiled regex pattern
FuzzyRegexBuilderBuilder for customizing regex
MatchA single match result
CapturesMatch with capture groups
StreamingMatcherStateful matcher for streaming
StreamingMatchMatch from streaming search

Quick Method Reference

#![allow(unused)]
fn main() {
use fuzzy_regex::FuzzyRegex;

// Construction
let re = FuzzyRegex::new("pattern").unwrap();

// Searching
re.is_match(text)           // bool - does it match?
re.find(text)               // Option<Match>
re.find_iter(text)          // Iterator<Match>
re.find_rev(text)           // Option<Match> - rightmost
re.captures(text)           // Option<Captures>

// Replacing
re.replace(text, "x")       // String
re.replace_all(text, "x")   // String
re.split(text)              // Split

// Streaming
re.stream()                 // StreamingMatcher
re.find_bytes(bytes)        // Option<StreamingMatch>
}