my ($prematch, $match, $postmatch) =~ /^(foo)(bar)(baz)$/;