[][src]Function fancy_regex::escape

pub fn escape(text: &str) -> Cow<'_, str>

Escapes special characters in text with '\'. Returns a string which, when interpreted as a regex, matches exactly text.