PHP正则表达式替换
<?php
$string = 'April 15, 2003';
$pattern = '/(\w+) (\d+), (\d+)/i';
$replacement = '$1,$3';
echo preg_replace($pattern, $replacement, $string);
?>