vendored matchers crate
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Balazs Horvath 627e7f5bd6
Some checks failed
CI / check-1 (push) Has been cancelled
CI / check (push) Has been cancelled
CI / Tests (push) Has been cancelled
CI / clippy_check (push) Has been cancelled
CI / rustfmt (push) Has been cancelled
fix: enable std feature for regex-automata to expose BuildError::Error impl
2026-06-01 22:36:28 +02:00
.github/workflows Update to regex-automata v0.4 (#5) 2024-07-01 14:58:47 -07:00
src Update to regex-automata v0.4 (#5) 2024-07-01 14:58:47 -07:00
.clog.toml chore: add CHANGELOG 2021-02-25 11:01:34 -08:00
.gitignore initial commit 2019-07-14 13:45:44 -07:00
Cargo.toml fix: enable std feature for regex-automata to expose BuildError::Error impl 2026-06-01 22:36:28 +02:00
CHANGELOG.md chore: prepare to release v0.2.0 2024-07-01 15:19:39 -07:00
LICENSE license under MIT 2019-08-02 13:27:15 -07:00
README.md chore: prepare to release v0.2.0 2024-07-01 15:19:39 -07:00

matchers

Regular expression matching on Rust streams.

Crates.io Documentation MIT licensed CI

Overview

The regex crate implements regular expression matching on strings and byte arrays. However, in order to match the output of implementations of fmt::Debug and fmt::Display, or by any code which writes to an instance of fmt::Write or io::Write, it is necessary to first allocate a buffer, write to that buffer, and then match the buffer against a regex.

In cases where it is not necessary to extract substrings, but only to test whether or not output matches a regex, it is not strictly necessary to allocate and write this output to a buffer. This crate provides a simple interface on top of the lower-level regex-automata library that implements fmt::Write and io::Write for regex patterns. This may be used to test whether streaming output matches a pattern without buffering that output.

Users who need to extract substrings based on a pattern or who already have buffered data should probably use the regex crate instead.