Skip to main content

escape

Function escape 

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

escape all resharp meta characters in text, returning a pattern that matches the literal string.

assert_eq!(resharp::escape("a+b"), r"a\+b");

escapes all resharp meta characters in text.