Help for this page

Select Code to Download


  1. or download this
        our $pre;
        my $prefix;
    ...
            (\d+)}x;
        my $suffix = $3;
        say $match ? $prefix . $suffix : '';
    
  2. or download this
        my $match = $str =~ m{^.{$pos}
            (?{local $pre = ''})
    ...
                (?{$prefix = $pre})
            )
            (\d*)}x;
    
  3. or download this
        my ($start, $end);
        my $res = $str =~ m{
    ...
            )
            (\d*)(?{$end = pos})
        }x ? substr($str, $start, $end - $start) : undef ;