how to identify repetitive patterns - Search