I\'m trying to write a regex that will succeed when an arbitrary pattern of length 2 or greater appears more than once in a phrase. Essentially, I would like to use a capture gr
.{2,} # any 2 or more characters
(.{2,}) # group them into captured group #1
(?=...) # positive lookahead
(?=.*?\1) # make sure at least one occurrence of captured group #1