Driver code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT st = " ABABABA " NEW_LINE pat = " ABA " NEW_LINE if ( regexMatch ( st , pat ) ) : NEW_LINE INDENT print ( " yes " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " no " ) NEW_LINE DEDENT DEDENT