in reply to really non greedy match

$ perl -le' my $text = "START text I don\047t want START only text I want END"; print scalar reverse reverse( $text ) =~ /(DNE.*?TRATS)/; ' START only text I want END

Replies are listed 'Best First'.
Re^2: really non greedy match
by ikegami (Patriarch) on Apr 25, 2010 at 06:11 UTC
    That changes the problem case from START...START...END to START...END...END