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.

10th Apr 2017, 12:57 PM
Reagan
Reagan - avatar
1 ответ
10th Apr 2017, 2:19 PM
Reagan
Reagan - avatar