And the regex is:
m/(?=(....)).+\1/ [download]
In reply to Re^2: (OT) A different kind of 'combinatorics' by Anonymous Monk in thread (OT) A different kind of 'combinatorics' by BrowserUk