I\'m wondering if there is a way creating a regex that matches only if two parts of the expression appear an equal number of times.
For example, if the two parts are