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). > > > > "this is 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>