Crate rust_regex_dsl
source ·Expand description
This crate was build to help using hard coded regular expressions. It provides those macros:
- The
regex!
macro - to verify a regular expression on compile time and remove the need to do it in run time and unwrap it. - The
regex_dsl!
macro - to make a regular expression easier to read and maintain. - The
create_capture!
macro - to create a struct from a regular expression.
To use, add:
rust-regex-dsl = "0.1"
To your Cargo.toml
manifest.
To build a DSL from a regular expression, see rust-regex-dsl-creator.
Macros§
- A macro to create a Regular Expression capturing struct.
- A simple regular expression macro.
- A DSL for creating Regular Expressions.