Re: how to replace multiple whit space with ", ".
- From: jeffpan@xxxxxxxxxxx (Jeff Pan)
- Date: Wed, 31 Aug 2005 12:44:54 +0800
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
.
- References:
- how to replace multiple whit space with ", ".
- From: Bernard van de Koppel
- how to replace multiple whit space with ", ".
- Prev by Date: Re: Escaping with tr
- Next by Date: can any body tell me how to remove quotes from a name.
- Previous by thread: Re: how to replace multiple whit space with ", ".
- Next by thread: can any body tell me how to remove quotes from a name.
- Index(es):
Relevant Pages
|