pub fn regex_captures( pattern: &str, text: &str, flags: &str, ) -> Result<Vec<RegexCapture>, String>