Crates.io | rust-regex-dsl |
lib.rs | rust-regex-dsl |
version | 0.1.8 |
source | src |
created_at | 2024-07-05 12:36:41.885444 |
updated_at | 2024-07-28 18:22:43.958466 |
description | Regular expression DSL. |
homepage | |
repository | https://github.com/yift/rust-regex-dsl |
max_upload_size | |
id | 1292705 |
size | 12,463 |
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.