((.)\2+)+
:
String pattern = "((.)\\2+)+";
System.out.println("a".matches(pattern));
System.out.println("1aaa".matches(pattern));
System.out.println("aa".matches(pattern));
System.out.println("aabb111".matches(pattern));
System.out.println("1111222".matches(pattern));
System.out.println("11222aaa".matches(pattern));
System.out.println("etc.".matches(pattern));
: