1 unstable release
0.1.0 | Nov 13, 2024 |
---|
#1396 in Rust patterns
36 downloads per month
3KB
Verbex
Verbex is a Rust library that provides procedural macros for creating regular expressions in a verbose and readable way.
Features
- Create regular expressions using a more readable syntax.
- Compile-time validation of regular expressions.
- Integration with Rust's standard
regex
crate.
Installation
Add the following to your Cargo.toml
:
[dependencies]
verbex = "0.1.0"
Usage
use verbex::regex;
let re = regex! {
start_of_line
"hello"
one_or_more_whitespace
"world"
end_of_line
};
assert!(re.is_match("hello world"));
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Dependencies
~2.2–3MB
~54K SLoC