Okay, do you want to actually replace the "last_name" keyword with the data inside the POST array, or just the string "$_POST['last_name']" ? If you want to actually replace it with the data in the superglobal, you'd use something like this:
$pattern = '/`(.*?)`/e'; // actually replace the keyword with data from superglobal
// OR
$pattern = '/`(.*?)`/'; // don't replace with data, just the literal $_POST[] reference
$newString = preg_replace($pattern, '$_POST["$1"]', $oldString);
I've gotta run, but if someone with REGEXP knowledge wants to explain how the two pattersn differ with the 'e' modifier, please do!