#uh. suppose you have

$cuname = "James             T Nobel";

#you want to do this probably

$cuname =~ s/\s+/ /g;

> -----Original Message-----
> From: Ned Cunningham [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 17, 2002 12:15 PM
> To: '[EMAIL PROTECTED]'
> Subject: Regex a name field
> 
> 
> Can anyone give me a hand please?
> I have a file
> 
> James T Nobel
> James T. Nobel, Jr.
> James and Kathy Nobel
> James  T Nobel
> James             T Nobel
> 
> I am trying to replace the spaces with a single space
> 
> My code so snippet is:
> 
> $cuname = $data[53];
> 
> $newcuname = /" "+/" "/$cuname;
> 
> But it isnt working
> 
> TIA
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to