Coded

preg_replace(/^.*.([^.]+)$/D, $1, $string);