How do we reduce repeating characters to a single character
Posted: Wed Nov 30, 2005 8:20 am
How do we reduce repeating, or multiple consecutive, characters to a single character, for example:
---- (multiple hyphens) => - (single hyphen)
aaaa (multiple letters) => a (single letter)
---- (multiple hyphens) => - (single hyphen)
aaaa (multiple letters) => a (single letter)