def METHOD_NAME(content, anchor):
    anchor_line_matches = re_anchor.finditer(content)
    if not anchor:
        return 0
    for line_match in anchor_line_matches:
        line = line_match.group(0)
        santitized_line = "-".join(line.lower() for line in re_anchor_words.findall(line))
        if anchor == santitized_line:
            return line_match.start()
    return 0