(\b\w{n,}\b)\W+(?:\w+\W+){1,m}?\1
find the same words of n characters or more within m characters using RegEx.