fn split_at<'a>(input: &mut &'a str, sep: &Regex) -> Result<&'a str, Error>