Skip to main content

regex_escape

Function regex_escape 

Source
pub fn regex_escape(text: &str) -> String
Expand description

text with every regex metacharacter backslash-escaped, so it matches itself (in Java’s regex syntax, which the appliance uses, and in Rust’s).