Print

Print


On 6/2/06, Larry Sulky <[log in to unmask]> wrote:
> On 6/2/06, Mark J. Reed <[log in to unmask]> wrote:
> > On 6/2/06, Philip Newton <[log in to unmask]> wrote:
> > > s/jupbogh moj/jup mojbogh/g :)
> >
> > Wow, a vi search/replace command!  Truly you are a man after my own heart. :)
>
> Don't you mean:
>
> s/(jup)(bogh)( moj)/$1$3$2/g ;

I would indeed mean that in Perl.   Although I'd probably write it as
just s/(bogh)( moj)/$2$1/g. :)
Could do it that way in vi, too: s/\(bogh\)\( moj\)/\2\1/g.

-- 
Mark J. Reed <[log in to unmask]>