Function pleaser::regex_build[][src]

pub fn regex_build(
    v: &str,
    user: &str,
    config_path: &str,
    section: &str,
    line: Option<i32>
) -> Option<Regex>
Expand description

build a regex and replace %{USER} with the user str, prefix with ^ and suffix with $