0
Guys, how do i find whether a string contains consecutive same characters in python using regex.
Consider a string s="fooo&baar". It has consecutive same char. (ie. "o" is repeated thrice and "a" is repeated twice" so i want it to print true. Please don't give me an answer, if it's not using regex.
1 Respuesta
+ 1
Found the answer myself
https://code.sololearn.com/cQ5UP096r5S3/?ref=app