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?

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
What Makes Software Apps High Quality -  http://shlom.in/sw-quality

The Blues Brothers are on a mission from God.
God is on a mission from Chuck Norris.
    — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

Reply via email to