I have been looking at a lot of questions but none of them answered my problem.
I am trying to identify vanity/special mobile numbers consisting of 9 digits.
I have this pattern of two numbers repeating for 4 times each
5XXXXYYYY
I was able to write a regex that catches the first group 'XXXX'. However, I am not able to acpture the second one 'YYYY'.
This is the regex I have tried so far
(\d)\1{3}
[0-9]{4,5}
I tried it on the below number, it returns '1111' and ignores '2222'
511112222
Is there a way to repeat the capture to include both groups
Thank you