Registry / utility / regex-macro

regex-macro

JSON →
library0.3.0rscratesunverified

A macro to generate a lazy regex expression, compiling it once at first use.

# Cargo.toml [dependencies] regex-macro = "0.3.0"
INSTALL
IMPORT
SIG · REGEX-MACRO
R
regex-macro
utilityrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

regex
use regex_macro::regex;

Creates a lazy regex pattern.

use regex_macro::regex; fn main() { let re = regex!("^hello"); println!("{}", re.is_match("hello world")); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
regex-macro — cargo add regex-macro · libregistry