in reply to Re: Greedy Substitution Within a Defined Range
in thread Greedy Substitution Within a Defined Range

Double points off for my ($rep = $1) =~ s/.... That should be two lines. This is how I'd solve the problem, btw. Nested substitutions are a really, really nice thing.

Replies are listed 'Best First'.
Re: Re: Re: Greedy Substitution Within a Defined Range
by Anonymous Monk on Apr 21, 2004 at 19:17 UTC

    Many many thanks to those who have given their time to help us. You make it look so easy, but I don't think it is really. We have used diotalevi's nested substitution solution -- it fits our purposes (and is remarkably fast).

    ::: Gratitude :::