1 unstable release
| 0.1.0 | May 25, 2025 |
|---|
#31 in #declarative-macro
50 downloads per month
Used in 4 crates
(via macron)
4KB
Regex Macro
Introduction:
Creates a new instance of Regex.
P.s.: More useful macros you can find here.
Examples:
let re = re!(r"^Hello, \w+!$");
assert!(re.is_match("Hello, World!"));
// with formatting:
let re = re!(r"^Hello, {}!$", "World");
assert!(re.is_match("Hello, World!"));
Licensing:
Distributed under the MIT license.
Feedback:
You can contact me via GitHub or send a message to my Telegram @fuderis.
This library is constantly evolving, and I welcome your suggestions and feedback.
Dependencies
~0–485KB