def matchPattern(self, in_pattern):

        global pattern
        global matchLst       # List of matching strings to be returned
        matchLst = []
        pattern = in_pattern
        wordsLst = []
        wordsLst = pattern.split()
        if len(wordsLst) == 0:
            print "Empty suffix- no valid suffix tree found for the input\n"
            sys.exit(1)

        wordsLst.append("$$$")
        SuffixTreeNode.dfSearch(self.__root, self.__root, wordsLst)
        return matchLst
Returns all the suffix strings that match the given pattern
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Grammar-Xtrctr/myTrie1.py/SimpleSuffixTree.matchPattern