Function regex_syntax::escape
source · pub fn escape(text: &str) -> String
Expand description
Escapes all regular expression meta characters in text
.
The string returned may be safely used as a literal in a regular expression.
pub fn escape(text: &str) -> String
Escapes all regular expression meta characters in text
.
The string returned may be safely used as a literal in a regular expression.