For half an hour I have been fighting over the expression.
The point is to exclude phone numbers containing more than 4 consecutive inclusions of the same numbers, ie:
893700000000 893777777777
and so on. All this business should work in Java, I try matches ("7 {4,}") for an example 893777777777, on an output I receive false.