- or download this
while( $string =~ m/\bstart:(.+?)\bstop:/g ) {
print "$1\n";
}
- or download this
my $lastmatch = ( $string =~ m/\bstart:(.+?)\bstop:/g )[ -1 ];
- or download this
if( $string =~ m/\bstart:(?!.+?(?:\bstart:))(.+?)\bstop:/ ) {
print "$1\n";
}