Regular expression to match any character being repeated more than 2 times, and any 2 characters being repeated more than 2 times

I tried "^(.)\1{2,}$" but output was always character(0)

I think it would be

(.)\1|(..)\2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.