Skip to main content

owner_regex

Function owner_regex 

Source
fn owner_regex() -> &'static Regex
Expand description

Captures the home-directory OWNER name out of an absolute home path. Narrower than path_regex in two ways: no /Volumes/ arm, because a volume name is not a user name, and a user-name character class, because stderr puts : or a quote straight after the path and a captured fragment then matches nothing.