🍵 Rexify
Trait-driven matcher library for Rust - expressive, composable, and extendable!
⚡ What is Rexify?
Rexify enables Rustaceans to define matchers using a trait based approach, offering a more type-safe, descriptive, and extensible alternative to traditional regex. It empowers you to create text parsers with ease.
🔎 Highlights
- Modular & Extensible: Compose custom patterns by implementing the
Matchertrait. - Rust-Native Design: Leverages trait objects, ownership and lifetime for safe and efficient matching.
📦 Intallation
Add rexify to your Cargo.toml:
[]
= "0.1.0"
🔧 Examples
use Rex;
use Matcher;
use Number;
use AnyChar;
use Repeat1;
let rex = new;
let text = "asdija123102abc";
assert_eq!;
assert_eq!;
⚖️ Lisence
MIT Lisence