Get text from node and filter if necessary.

def get_text_from_node(self, node, regex=None, group=1):
        """Get text from node and filter if necessary."""
        text = self._get_stripped_text_from_node(node)

        if regex is not None:
            text = self._filter_by_regex(regex, text, group)

        return text