import re


def find_word(regexp, line, cut_prefix="", cut_postfix=""):
    """find word between prefix and postfix"""
    result = re.match(regexp, line)
    if result:
        raw_string = "{}".format(result.group(0))
        return raw_string[len(cut_prefix):len(raw_string)-len(cut_postfix)]
    return 0