import re


def ints(text):
    """Return a list of extracted integers.

    A hyphen-minus character '-' directly preceding a number is treated as a
    minus sign, unless it directly follows another number, in which case it's
    treated as a separator.

    Example: ints('-3 T-4,5-10') --> [-3, -4, 5, 10]
    """

    pattern = r'(?<!\d)-?\d+'
    return [int(match) for match in re.findall(pattern, text, re.ASCII)]