import re


def match_has_scores(line):
    """Returns true if and only if a match has a numerical, non-negative score assigned to both players."""
    return re.search('[rl]\d+m\d+p1score=\d+', line) and re.search('[rl]\d+m\d+p2score=\d+', line)