def METHOD_NAME():
    input_string = "123456789"
    re1 = StringPattern("2345678", conflict_solver=lambda match, conflicting: conflicting)
    re2 = StringPattern("34567")
    matches = Matches(re1.matches(input_string))
    matches.extend(re2.matches(input_string))
    execute_rule(ConflictSolver(), matches, None)
    assert len(matches) == 1
    assert matches[0].value == "2345678"