escape

Function escape 

Source
pub fn escape(text: &str) -> String
Available on (crate features syntax-glob or syntax-ev or syntax-regex) and crate feature syntax-regex only.
Expand description

Escapes all regular expression meta characters in text.

The string returned may be safely used as a literal in a regular expression.