SPUG: multiple spaces in string

apv apv at sedition.com
Wed Feb 8 13:48:45 PST 2006


On Wednesday, February 8, 2006, at 01:42  PM, apv wrote:
> That's right and even s/\s+/ /g can be improved b/c as is it is 
> substituting
> every " " with a " " too which is pointless. This would be closer to 
> the
> literal intent:
Sorry, this
>   s/  */ /g;
should have been
   s/  +/ /g;
Otherwise it's no different from the original.



More information about the spug-list mailing list