"the lazy  brown   fox    jumped..." #### $foo =~ s/(?<= )( +)/' ' x length($1)/ge #### "the lazy brown fox jumped..." #### $foo =~ s/ {2,}/ /g;