Help for this page

Select Code to Download


  1. or download this
    builder {
    
    ...
        my ($string, $head, $tail) = @_;
        $string =~ s{ \A \Q$head\E (.+?) \Q$tail\E \z }{$1}xmsr;
    }