結果 : find repeating pattern in string python