如果有超过2个字符"Hiiiiiii My frieeend !!!!!!!"
我需要被简化为"Hii My frieend !!"
请注意,在我的语言中,有很多双字符的单词.Thnx提前
kplla
regex string perl
perl ×1
regex ×1
string ×1