【在线等】提问一个正则表达式的问题,说通了直接采纳
<?php$string='April15,2003';$pattern='/(\w+)(\d+),(\d+)/i';//这里求注释$replacement='${1}1...
<?php
$string = 'April 15, 2003';
$pattern = '/(\w+) (\d+), (\d+)/i';//这里求注释
$replacement = '${1}1,$3';//这里求注释 越详细越好
echo preg_replace($pattern, $replacement, $string);
?> 展开
$string = 'April 15, 2003';
$pattern = '/(\w+) (\d+), (\d+)/i';//这里求注释
$replacement = '${1}1,$3';//这里求注释 越详细越好
echo preg_replace($pattern, $replacement, $string);
?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询