0111100 will be matched whereas 0111110 will not. Change \1{4} to max repeating count. For max 9 repeating -> \1{9}