def egrep(self, pattern):
        """
        REGEX search for pattern in file
            equiv to: `egrep "^asdf.*[0-9]+$" ./file`

        Return matching lines as a List of Strings.
        If no matches returns False

        :param pattern: String; regex pattern to search for.
        :return: List of Strings, or False.
        """
        pattern = re.compile(pattern)
        result = []
        for line in self.contents:
            if pattern.search(line):
                result.append(line)
        if result:
            return result
        return False
REGEX search for pattern in file
            equiv to: `egrep "^asdf.*[0-9]+$" ./file`

        Return matching lines as a List of Strings.
        If no matches returns False

        :param pattern: String; regex pattern to search for.
        :return: List of Strings, or False.