Re: how to replace multiple whit space with ", ".





s/\s+/, /g;

On Wed, 31 Aug 2005 01:40:38 +0200, "Bernard van de Koppel"
<subscr@xxxxxxxxxx> 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: beginners-unsubscribe@xxxxxxxx
> For additional commands, e-mail: beginners-help@xxxxxxxx
> <http://learn.perl.org/> <http://learn.perl.org/first-response>
>
>
--
Jeff Pan
jeffpan@xxxxxxxxxxx

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

.



Relevant Pages