Crates.io | rust-regex-dsl_derive |
lib.rs | rust-regex-dsl_derive |
version | 0.1.8 |
source | src |
created_at | 2024-07-05 12:36:26.228247 |
updated_at | 2024-07-28 18:22:27.710674 |
description | Regular expression DSL derive macros. |
homepage | |
repository | https://github.com/yift/rust-regex-dsl |
max_upload_size | |
id | 1292703 |
size | 108,342 |
This crate was build to help using hard coded regular expressions.
While regular expressions is a powerful tool to parse and validate strings, they are hard to maintain from within a codebase. This is from a few reason reason:
([a-z]+)|([A-Z]+)
has two group but only one will be caught, so none for index 3 has different meaning from none in index 1).Add
[dependencies]
rust-regex-dsl = "0.1"
To the Cargo.toml
manifest. And use either one of the available macros.
See here.