import re


def is_comment(s):
    """ Checks if a string looks like a comment line (first non whitespace char is #)
    :param s: string to check
    :return: True/False
    """
    if re.match(r'(\s+|)#(.*?)', s):
        return True
    else:
        return False