Thread overview | |||||
---|---|---|---|---|---|
|
February 09, 2013 eating whitespace | ||||
---|---|---|---|---|
| ||||
I wonder what the best, that means the fastest way is to remove all whitespace " \t\n\r" from as string. Whitespace are distributed erratically within the string. Peter |
February 09, 2013 Re: eating whitespace | ||||
---|---|---|---|---|
| ||||
Posted in reply to Peter Sommerfeld | On 2/9/13, Peter Sommerfeld <noreply@rubrica.at> wrote: > I wonder what the best, that means the fastest way is > to remove all whitespace " \t\n\r" from as string. > Whitespace are distributed erratically within the string. > > Peter > Try "f\too\t\n\rb\nar".removechars("\t\n\r") |
February 09, 2013 Re: eating whitespace | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | Am 09.02.2013, 22:30 Uhr, schrieb Andrej Mitrovic <andrej.mitrovich@gmail.com>:
> "f\too\t\n\rb\nar".removechars("\t\n\r")
thanks, works...
Peter
|
Copyright © 1999-2021 by the D Language Foundation