|
Posted by lars on February 20, 2008, 6:07 pm
Please log in for more thread options pauls schrieb:
> I have a text file in which I need to replace a plus sign surrounded by
> spaces with just a single plus sign:
>
> this:
>
> ua = 1.5745e-09 + (3.3585e-09)*((temp+273.15)/(27+273.15)-1)**2
>
> becomes:
> ua = 1.5745e-09+(3.3585e-09)*((temp+273.15)/(27+273.15)-1)**2
>
> I tried this:
> s/ + /+/g;
>
> But it did not seem to work...
>
>
> Thanks, all help appreciated!!
>
> P
Try it this way
s/ \+ /\+/g
|