On Wed, Aug 21, 2002 at 08:47:32AM +0100, Piers Cawley wrote: > Andrew.Savige@ir.com writes: > > > En op 18 augustus 2002 sprak Yorkshireman Piers Cawley: > > > Tee hee. > > > > > > -l $_=$"x2**pop;s'$'/\\',print,s/\\../$&^PC1^PLM/egwhile+s\^ \\ > > > > > > I *thought* that lookbehind looked a little too long... > > > > Ton always has the last laugh. Your solution does not work. > > How very annoying. I wonder it doesn't work? Probably something to do > with how the regex engine matches after a replacement... I would guess it's because /(?<=\\)../ can match the same backslash that was matched at the end of the previous match, but /\\../ has to match a completely new backslash. RonaldThread Previous | Thread Next