def _is_subsequence_of ( self , sub , sup ) : return bool ( re . search ( ".*" . join ( sub ) , sup ) )
python chech if a string is a sub string of another string
Parameters ---------- sub : str sup : str
def _is_subsequence_of(self, sub, sup):
        """
        Parameters
        ----------
        sub : str
        sup : str

        Returns
        -------
        bool
        """
        return bool(re.search(".*".join(sub), sup))