in reply to Re: Greedy RegExp
in thread Greedy RegExp

Nail on the head. Thanks. Had wondered if there was an antigreedifier like .+? but this does the job brilliantly. soemtime i wish i didn't think so hard!
cheers
ant

Replies are listed 'Best First'.
Re: Greedy RegExp
by Abigail-II (Bishop) on Mar 15, 2004 at 16:26 UTC
    Had wondered if there was an antigreedifier like .+?
    Oh, there is. And it's spelled .+?. But greedy or lazy (aka 'antigreedy'), still has to yield to more important rules like finding the left-most match.

    Abigail