I have a (sorted) list like this and seek a regular expression to match consecutive duplicates.
1,1,1.28,1.35,1.4,1.4,2,2,4,7.5,7.56
I tried different options and the best so far was ?:^|,)([^,]+)(,[ ]*\1)+, but obviously it does not take into account cases like 1,1,1.28 (see demo).
In plain words, the regex I would need it:
Whatever there's inside two commas, match if there is a duplicate