import re


def to_camel_case(string: str, *, title_case: bool=False, delimiters=(' ', '_')):
    """
    Returns a camelCased version of a string
    :param string:
    :param title_case: Whether the output should have a first capital letter.
    :param delimiters: Word separators. These should be valid regex character
           classes.
    :return: a camel-cased string
    """
    delimiter_class = f"[{''.join(delimiters)}]"
    string_start = '^|' if title_case else ''
    delimiter_pattern = f"(?:{string_start}{delimiter_class})"
    pattern = f"{delimiter_pattern}+(\\w)"
    return re.sub(pattern, lambda mo: mo.group(1).upper(), string)