Help for this page

Select Code to Download


  1. or download this
    my $s = <<__end_of_string__;
    start
    ...
    my ($match) = $s =~ /start(.*?)end/ims;
    
    print $match;
    
  2. or download this
    my ($match) = $s =~ /start\n(.*?)end/ims;