in reply to Re^2: How can I strip an arbitary number of "inner" spaces from a string?
in thread How can I strip an arbitary number of "inner" spaces from a string?
or just for fun:s/(\:)\s+/$1/
Second probably has loads of reasons why it'll fall over in other cases but seems to work fine here.s/(:) +/$1/
|
|---|