in reply to Re: print data between two regular expressions
in thread print data between two regular expressions

Ok, I'm not sure if I'm misreading the OP's spec, or you are.
I think you mean:

my $ext = substr $str, $start, $end - $start;
(swapped end and start) - cheers

davis
It's not easy to juggle a pregnant wife and a troubled child, but somehow I managed to fit in eight hours of TV a day.