Johnno wrote:
> 
> Hello,
> 
> I was wondering if any knew of a way to taking out 2 spaces and just leave
> one..
> 
> ie..  hello   world = hello world..
> 
> when i tried i got all sorts of problems..  the piece of code i was using
> is..
> 
> $text =~ s/\  /\ /g;
> 
> any ideas??

Several.  Here's one:

        $text =~ s/  +/ /g;

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   http://www.wgn.net/~dbe/
  / ) /--<  o // //      Mailto:[EMAIL PROTECTED]   http://dbecoll.webjump.com/
-/-' /___/_<_</_</_    http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to