set str "sddgoooo";set lst [regexp -all -inline {\w} [regsub -all {(\w)\1+} $str {\1}]];puts $lst
Standard input is empty
s d g o
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!