Skip to main content

Crate macron_regex

Crate macron_regex 

Source
Expand description

githubcrates-iodocs-rs

§Regex Macro

Creates a new instance of Regex.

See more macros: docs, repository.

§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!"));

§License & Feedback:

This library distributed under the MIT license.

You can contact me via GitHub or send a message to my E-Mail. This library is actively evolving, and your suggestions and feedback are always welcome!

Macros§

re
Creates a new instance of Regex