code: def egrep(self, pattern):
          
          pattern = re.compile(pattern)
          result = []
          for line in self.contents:
              if pattern.search(line):
                  result.append(line)
          if result:
              return result
          return False
docs: 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.