def METHOD_NAME(text, *regexes):
    char_ranges = []
    for line in text.split('\n'):
        for regex in regexes:
            m = regex.match(line)
            if m:
                char_ranges.append(regex_char_range(m.group(1)))
    return char_ranges