code: def get_text_from_node(self, node, regex=None, group=1):
          
          text = self._get_stripped_text_from_node(node)
  
          if regex is not None:
              text = self._filter_by_regex(regex, text, group)
  
          return text
docs: Get text from node and filter if necessary.