Crates.io | rust-regex-dsl-creator |
lib.rs | rust-regex-dsl-creator |
version | 0.1.8 |
source | src |
created_at | 2024-07-14 09:22:12.451345 |
updated_at | 2024-07-28 18:22:12.17556 |
description | Regular expression DSL derive macros. |
homepage | |
repository | https://github.com/yift/rust-regex-dsl |
max_upload_size | |
id | 1302867 |
size | 38,081 |
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.