I have a regex problem I can't seem to solve. I actually don't know if regex can do this, but I need to match a range of characters n times at the end of a pattern. eg. blahblah[A-Z]{n} The problem is whatever character matches the ending range need to be all the same.
For example, I want to match
- blahblahAAAAA
- blahblahEEEEE
- blahblahQQQQQ
but not
- blahblahADFES
- blahblahZYYYY
Is there some regex pattern that can do this?