fork download
  1. set str "sddgoooo";
  2. set lst [regexp -all -inline {\w} [regsub -all {(\w)\1+} $str {\1}]];
  3. puts $lst
Success #stdin #stdout 0.01s 5392KB
stdin
Standard input is empty
stdout
s d g o