I've already gone through: Regex to match four repeated letters in a string using a Java pattern and Regular expression to match any character being repeated more than 10 times
But they aren't useful in my case. They are fine if I just want to check if a string is containing repeated characters (like 1111, abccccd, 12aaaa3b, etc.). What I want is to check if string is comprising entirely of repeated characters only i.e. aabb111, 1111222, 11222aaa, etc.
Can anyone help me out with this?