Crates.io | vebex |
lib.rs | vebex |
version | 0.1.0 |
source | src |
created_at | 2024-11-11 16:04:46.406048 |
updated_at | 2024-11-11 16:04:46.406048 |
description | Vebex is a Rust library that provides procedural macros for creating regular expressions in a verbose and readable way. |
homepage | https://chinifabio.github.io |
repository | https://github.com/chinifabio/vebex |
max_upload_size | |
id | 1443879 |
size | 2,484 |
Vebex is a Rust library that provides procedural macros for creating regular expressions in a verbose and readable way.
regex
crate.Add the following to your Cargo.toml
:
[dependencies]
vebex = "0.1.0"
use vebex::regex;
let re = regex! {
start_of_line
"hello"
one_or_more_whitespace
"world"
end_of_line
};
assert!(re.is_match("hello world"));
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.