I need to preg_replace multiple same letters (only A-Z or a-z, not numbers) in a row with same three. Can anybody help me with a pattern string?
Example:
Input: NO MEK PUCES CUDAK AVVVVVVVVVVVVVVVVVVVVVVVVV VASMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Output: NO MEK PUCES CUDAK AVVV VASMAAA