Function regex_syntax::ast::parse::is_capture_char[][src]

fn is_capture_char(c: char, first: bool) -> bool

Returns true if the given character is a valid in a capture group name.

If first is true, then c is treated as the first character in the group name (which is not allowed to be a digit).