Is there a way using a regex to match a repeating set of characters? For example:
ABCABCABCABCABCABC{5}
I know that's wrong. But is there anything to match that effect?
Update:
Can you use nested capture ...
Given lines that look like the following: Blah \cite[9.1173]{Joyce:1986aa}\autocite[42]{Kenner:1970ab}\autocite[108]{Hall:1960aa} bbb.\n
I’d like to remove the second (and any subsequent) occurrence of \autocite, resulting in the following: Blah \autocite[9.1173]{Joyce:1986aa}[42]{Kenner:1970ab}[108]{Hall:1960aa} bbb.\n
I’m struggling to express ...
I am trying to replace any instances of uppercase letters that repeat themselves twice in a string with a single instance of that letter in a lower case. I am using ...
I submit the following values: username 'foo', password 'bar'
I submit the following values: username 'foo', password 'bar','foo', profile 'bar', extra 'something'
What would be the best way to limit repeating letters down to 1 and 2 such as:
appppppppple => aple and apple
bbbbbeeeeeer => ber, beer, bber, bbeer
Right now, I ...