Front page | perl.fwp |
Postings from March 2002
Re: TPR1 post-mortem
Thread Previous
|
Thread Next
From:
Keith C. Ivey
Date:
March 8, 2002 06:28
Subject:
Re: TPR1 post-mortem
Message ID:
3C8884C0.26887.14C9E336@localhost
Marcelo E. Magallon <marcelo.magallon@bigfoot.com> wrote:
> A question of my own: why doesn't
>
> s/\B.\B/$&$&/g
>
> work as I expect, namely abcd -> abbccd. I really can't figure it
> out by reading the docs.
I wondered that too. I figured it was because \B wouldn't match
twice at the same place, but then I saw that s/\B./$&$&/g didn't work
as expected either.
--
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC
Thread Previous
|
Thread Next