in reply to Re: really non greedy match
in thread really non greedy match

thanks, but that wouldn't work for me. I want to use the expression as a delimiter in split.

Replies are listed 'Best First'.
Re^3: really non greedy match
by ikegami (Patriarch) on Apr 25, 2010 at 16:41 UTC
    Bad use of split. The first arg of split is a separator. You want //g.
    my @parts = $text =~ /START((?:(?!START|END).)*)END/sg;