Something may work here, however, it will tell you if there is a pattern repeated three times, and (I don't think) cannot be expanded to let you know if there are others:
/(.+).*?\1.*?\1/
Violation of this:
(.+) matches any 1 or more characters, starting anywhere in the string .*? allows any length of interposing other characters (0 or more) \1 matches whatever was captured by the (...+) parentheses .*? 0 or more of anything \1 the original pattern, again
If you want the repetitions to appear immediately next to them, use
/(.+)\1\1/
... as suggested by @Buh Buh - notation \1 vs. $1 may vary depending on your regexp system.
source share