Function gitql_ast::regex_utils::regexp_pattern_position
source · pub fn regexp_pattern_position(input: &str, pattern: &str) -> i64
Expand description
Return the position of the pattern in the input If the pattern compilation fails, it returns -1 If a match is found returns the position of the match’s start offset (adjusted by 1)