Function testcall::regex::regex_match_bytes[][src]

pub fn regex_match_bytes(input: &[u8], regex: &str) -> (bool, String)
Expand description

Checks if the input matches the given regex as bytes. Returns a tuple of the test outcome and the input as lossy utf8 string (for diagnostics).