(Hopefully) a rather quick question. I'm currently trying to use regex to search a string for the location of the longest continuous match in a string where the *same* character keeps repeating. It doesn't matter which character it is, as long it is the highest number of consecutive repeats of the same character then I want the position in the multiline string where it occurs.
So as a brief example if I had a string "cataaaaac" I would want re.start() to return "3".
I've been using '+' but it keeps giving me the first instance of a match rather than the longest instance.
Any advice? Thanks.