in reply to really non greedy match

Have you tried the following?

/.*START.*?END/

HTH, Rata

Replies are listed 'Best First'.
Re^2: really non greedy match
by Allasso (Monk) on Apr 24, 2010 at 21:58 UTC
    thanks, but that wouldn't work for me. I want to use the expression as a delimiter in split.
      Bad use of split. The first arg of split is a separator. You want //g.
      my @parts = $text =~ /START((?:(?!START|END).)*)END/sg;