Re: Small translation challenge
From: | Mark J. Reed <markjreed@...> |
Date: | Saturday, June 3, 2006, 20:55 |
On 6/2/06, Larry Sulky <larrysulky@...> wrote:
> On 6/2/06, Mark J. Reed <markjreed@...> wrote:
> > On 6/2/06, Philip Newton <philip.newton@...> 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 <markjreed@...>