import re


def find_(word, stream, ignore_case=True):
    """Find the `word` in the `stream`.

    :param word: str, word or pattern to be searched in stream
    :param stream: str, stream to be searched in
    :param ignore_case: whether to ignore the case
    :returns: the corresponding `word` (could be of different case
    if `ignore_case` is specified) from the stream
    """
    match = re.search(word,
                      stream,
                      flags=re.IGNORECASE if ignore_case else 0)

    if match is not None:
        match = match.group(0)

    return match