#regex #regular #expressions #readable #verbose #procedural #proc-macro

verbex

Vebex is a Rust library that provides procedural macros for creating regular expressions in a verbose and readable way

1 unstable release

0.1.0 Nov 13, 2024

#1258 in Rust patterns

Download history 104/week @ 2024-11-11 12/week @ 2024-11-18

116 downloads per month

MIT/Apache

3KB

Verbex

Verbex is a Rust library that provides procedural macros for creating regular expressions in a verbose and readable way.

Features

  • Create regular expressions using a more readable syntax.
  • Compile-time validation of regular expressions.
  • Integration with Rust's standard regex crate.

Installation

Add the following to your Cargo.toml:

[dependencies]
verbex = "0.1.0"

Usage

use verbex::regex;

let re = regex! {
    start_of_line
    "hello"
    one_or_more_whitespace
    "world"
    end_of_line
};

assert!(re.is_match("hello world"));

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Dependencies

~2.2–3MB
~54K SLoC