Python re.sub to replace 3 or more of same character with 1

后端 未结 3 828
耶瑟儿~
耶瑟儿~ 2021-01-06 15:15

I\'m trying to find characters that are repeated 3 times or more, for example I want to take the following strings:

(\'aaa\', \'buuuuut\',

3条回答
提交回复
热议问题