I am trying to find regex for 2 types of situations:
1. where string has letters repeating 3 times in the beginning like aaatgre, rrryutu, yyyuiop,www-retdfdf etc
2. where string has letters repeating 3 times in the end like rtyuiii, tyrdyyy, iioottqqq etc.
Can someone help me in building the regex for these two scenarios. Thanks !