voca_rs::escape
pub fn escape_regexp(subject: &str) -> String
Escapes the regular expression special characters - [ ] / { } ( ) * + ? . \ ^ $ | in subject.
subject
use voca_rs::*; escape::escape_regexp("(hours)[minutes]{seconds}"); // => \(hours\)\[minutes\]\{seconds\}