Nordlöw:

How can I extend

string line = "car    wash";

line.strip.splitter!isWhite.joiner("_").to!string

so that

car   wash

becomes

car_wash

and not

car___wash

?

Use std.string.tr.

Bye,
bearophile

Reply via email to