I want regex to match a pattern only when it consists of a repeated subpattern. It can be boiled down to something as simple as the following. Given this text:
a a
a b
b b
I want a regex pattern that will only match "a a" and "b b" (and NOT "a b"), because there are two occurrences of the same subpattern on those lines.
I'm working in BBEdit, though the solution presumably would apply to any extended regex. I've been reading a lot about conditional subpatterns here on stack overflow and elsewhere, and experimenting as I go, but I don't seem to be able to make it work. Probably going to be chagrinned when I find out how simple it is. Bonus points (as usual) for explaining why the regex works the way it does.