import re


def grep_lines(lines, expression):
    """Returns lines matchin expression"""
    result = []
    for line in lines:
        #print(line)
        if re.search(expression, line): 
            result.append(line.strip())
    return result