Re: Removing blanks spaces
- From: "John W. Kennedy" <jwkenne@xxxxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 13:27:29 -0400
Roy Gourgi wrote:
Hi,
How would I remove spaces either trailing or following?
For example if I have a variable x = " 10" and I would like to remove the 4 spaces before the 10 so that the variable x = "10".
Also if I again have a variable x = "10 " and I would like to remove the 4 spaces after the 10 so that the variable x = "10".
How would I do that?
There is no built-in gadget to do it. You could either do it by hand with a for loop or use regular expressions.
--
John W. Kennedy
"Sweet, was Christ crucified to create this chat?"
-- Charles Williams. "Judgement at Chelmsford"
.
- References:
- Removing blanks spaces
- From: Roy Gourgi
- Removing blanks spaces
- Prev by Date: Re: how does windows find java.exe?
- Next by Date: double with precision
- Previous by thread: Re: Removing blanks spaces
- Next by thread: Re: Removing blanks spaces
- Index(es):