in reply to How can I extract the expression between two key words
my ($match) = $text =~ /^0(.+)SUBCASE/; [download]