|Date: ||Wed, 1 Nov 2000 12:33:02 -0800|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|Subject: ||Re: remove extra space in character string|
from mxu@AMGEN.COM on Wed, Nov 01, 2000 at 10:54:19AM -0800|
|Content-Type: ||multipart/signed; micalg=pgp-sha1;
on Wed, Nov 01, 2000 at 10:54:19AM -0800, Xu, Meifen (mxu@AMGEN.COM) wrote:
> Hello, there:
> I have a character variable with most character string looking very regular.
> But there are a few strings among the words having more than one space. I
> certainly want to eliminate these extra space and tried translate(var, ' ',
> ' '). It turned to me it does not work out. I don't think compress can
> function at this case because between words one space needed for sure.
> Here is the string that I want to deal with:
> My leg was injured. this is original one.
> I like it looking like:
> My leg was injured.
s/ *// /g
...Damn! Wrong list!! <g>
...the mad evangelist strikes again...
Karsten M. Self <firstname.lastname@example.org> http://www.netcom.com/~kmself
Evangelist, Opensales, Inc. http://www.opensales.org
What part of "Gestalt" don't you understand? There is no K5 cabal