macro_rules! regex {
($re:literal $(,)?) => { ... };
}Expand description
This makes it easier to write regex replacements that are guaranteed to only get compiled once
macro_rules! regex {
($re:literal $(,)?) => { ... };
}This makes it easier to write regex replacements that are guaranteed to only get compiled once