code: def search_regexp(self):
          
          if ((self.season == "") and (self.episode == "")):
              # Find serie
              try:
                  print("%s has %s seasons (the serie is %s)" % (self.tvdb.data['seriesname'], self.tvdb.get_season_number(), self.tvdb.data['status'].lower()))
                  # print self.tvdb.data
              except:
                  pass
              regexp = '^%s.*' % self.title.lower()
          elif (self.episode == ""):
              # Find season
              try:
                  print("%s has %s episodes in season %s" % (self.tvdb.data['seriesname'], self.tvdb.get_episode_number(int(self.season)), self.season))
              except:
                  pass
              regexp = '^%s.*(s[0]*%s|season[\s\_\-\.]*%s).*' % (self.title.lower(), self.season, self.season)
          else:
              # Find season and episode
              try:
                  print("%s S%sE%s name is \"%s\"" % (self.tvdb.data['seriesname'], self.season, self.episode, self.tvdb.get_episode(int(self.season), int(self.episode))['episodename']))
              except:
                  pass
              regexp = '^%s.*((s[0]*%s.*e[0]*%s)|[0]*%sx[0]*%s).*' % (self.title.lower(), self.season, self.episode, self.season, self.episode)
          return regexp
docs: Define the regexp used for the search