How can I match the repetition of a character n times?
For example with this sample text
abcdddd123
123456777xssx
I want to match the three consecutive 7 and the three consecutive d
I've tried with
.{3}
But the quantifier {3}, as well as other quantifiers such as the asterisk, dones't seem to quantify the same character but any other different character as well.
I mean it doesn't repeat the first matched character muy the dot itself.
In my example it will match everything.