shrotening length of same characters words
Posted: Fri Nov 09, 2012 12:41 pm
i need to find any words (or punctuation) that are composed of more than 4 letters of the same character and shorten them to 4
that is
AAAAAAAAAAA -> AAAA
???????????????? -> ????
........................... -> ....
Brrrrrrrrrrrrrrrrr -> Brrr
any help would be appriciated
that is
AAAAAAAAAAA -> AAAA
???????????????? -> ????
........................... -> ....
Brrrrrrrrrrrrrrrrr -> Brrr
any help would be appriciated