code: def tag(self, text):
          
          matches = self._match(text.text)
          matches = self._resolve_conflicts(matches)
  
          if self.return_layer:
              return matches
          else:
              text[self.layer_name] = matches
docs: Retrieves list of regex_matches in text.
  
          Parameters
          ----------
          text: Text
              The estnltk text object to search for events.
  
          Returns
          -------
          list of matches