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
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.