I'm trying to build a regex to "reduce" duplicate consecutive substrings from a string in Java. For example, for the following input:I'm trying to build a regex to "reduce" duplica
I'm trying to build a regex to "reduce" duplicate consecutive substrings from a string in Java. For example, for the following input:I'm trying to build a regex to "reduce" duplica