Compress spaces to one space

Andrej Mitrovic andrej.mitrovich at gmail.com
Tue Feb 21 03:04:27 PST 2012


Is there a Phobos function to compress all spaces to just one space in a string?

E.g. " foo   bar             "
becomes: " foo bar "


More information about the Digitalmars-d-learn mailing list