s/\s+/, /g;

On Wed, 31 Aug 2005 01:40:38 +0200, "Bernard van de Koppel"
<[EMAIL PROTECTED]> said:
> Hi,
> 
> How can I replace multiple white space with ", " (comma space).
> 
> "this    is a     space"
> 
> should be changed to 
> "this, is a, space"
> 
> Hope someone can help,
> 
> Bernard
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
> 
> 
-- 
  Jeff Pan
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - Faster than the air-speed velocity of an
                          unladen european swallow


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to