在PHP欲修改已經由下式使用正則表達式重複字符的字符串:預先PHP正則表達式重複字符
1. Chars different from "r", "l", "e" repeated more than once
consecutively should be replaced for the same char only one time.
Example:
- hungryyyyyyyyyy -> hungry.
- hungryy -> hungry
- speech -> speech
2. Chars "r", "l", "e" repeated more than twice replaced for the same
char twice.
Example:
- greeeeeeat -> greeat
由於
巴勃羅
我不認爲土豚是太高興與此有關。 – 2013-05-10 20:06:27
也不會木材。 – 2013-05-10 20:07:34
讓我們不要爲此而展開大決戰,否則我們都會被殲滅! XD – 2013-05-10 20:16:36