What's the quickest (and most Pythonic) way to do the following Perlism: $str = s/d+/d/; (i.e. collapsing multiple occurrences of the letter 'd' to just one) Thanks, Jeff