On 05/18/2017 02:08 AM, Shlomi Fish wrote:
On Thu, 18 May 2017 00:56:42 -0700
ToddAndMargo <toddandma...@zoho.com> wrote:
On 05/18/2017 12:22 AM, ToddAndMargo wrote:
Hi All,
Any of you guys have a favorite way to remove all
spaces from a string? (Otherwise I will use a regex.)
Many thanks,
-T
I like this. Any objections to it?
perl6 -e 'my $x="1234, 5678"; $x ~~ tr/ //; say $x;'
1234,5678
There are other whitespace characters in ASCII and in unicode than just ' ' (or
'\x20') - \t, \v, \n, etc. How do you wish to handle them?
I just want to remove spaces " " ascii 32
But I am curious about how to handle the rest of them that
you mention. I would normally do the one at a time.
Is there a way to do them all at once?