結果 : find repeated patterns in a string python