• + 2 comments

    So why did this fail?

    regex_integer_in_range = r"^[1-9][0-9]{5}$"
    regex_alternating_repetitive_digit_pair = r"(\d)\d?(\1)"
    

    I know that regex_integer_in_range is fine, but what is it about regex_alternating_repetitive_digit_pair that won't work on all test cases?