multimatch 0.1.1

Multi-pattern matching engine — Aho-Corasick + regex with optional Hyperscan SIMD acceleration
Documentation
//! Example demonstrating regex matching with multimatch.
//!
//! Run: cargo run --example regex_matching

use multimatch::Scanner;

fn main() {
    let patterns = multimatch::PatternSet::builder()
        .add_regex(r"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}", 1)
        .build()
        .expect("Failed to compile regex");

    let input = b"Contact us at security@example.com for more info.";
    let matches = patterns.scan(input);

    for m in &matches {
        let text = std::str::from_utf8(&input[m.start..m.end]).unwrap_or("<binary>");
        println!("Found email: {}", text);
    }
}