$& contains the matched string; $` (a backtick character) contains everything before the matched string; $' contains everything after the matched string.