import re


def get_value_for_key(text_buffer, key):
    """Parsing value from a line with key=value"""
    for match in re.finditer("%s=(?P<value>.*)" % key, text_buffer):
        return match.group('value')
    return ""