Help for this page

Select Code to Download


  1. or download this
    if ($text =~ /\bstart\b(.*?)\bend\b/) {
        $result = $1;
        # do something with results
    }
    
  2. or download this
    sub between {
        my $text = shift;
        if ($text =~ /start(.*?)end/) {
    ...
            return $text;
        }
    }