Re: how to replace multiple whit space with , .

2005-09-02 Thread Bernard van de Koppel
Hi,

Both solutions work great
$omschrijving=~s/  +/, /g;
$omschrijving=~s/\s+/, /g;

Many thanks,

Bernard

On Wednesday 31 August 2005 02:18, John W. Krahn wrote:
 Bernard van de Koppel wrote:
  Hi,

 Hello,

  How can I replace multiple white space with ,  (comma space).
 
  thisis a space
 
  should be changed to
  this, is a, space

 s/  +/, /g


 John
 --
 use Perl;
 program
 fulfillment

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




Re: how to replace multiple whit space with , .

2005-08-30 Thread John W. Krahn
Bernard van de Koppel wrote:
 Hi,

Hello,

 How can I replace multiple white space with ,  (comma space).
 
 thisis a space
 
 should be changed to 
 this, is a, space

s/  +/, /g


John
-- 
use Perl;
program
fulfillment

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




Re: how to replace multiple whit space with , .

2005-08-30 Thread Jeff Pan


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).
 
 thisis 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