正则表达式的替换
$patterns = array ('/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/',
'/^\s{(\w+)}\s*=/';
$replace = array ('\3/\4/\1\2', '$\1 = ');
请问替换数组“\3/\4/\1\2”里边“\4”前后“/\4/”两条斜线是什么意思和作用?
$patterns = array ('/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/',
'/^\s{(\w+)}\s*=/';
$replace = array ('\3/\4/\1\2', '$\1 = ');
请问替换数组“\3/\4/\1\2”里边“\4”前后“/\4/”两条斜线是什么意思和作用?
2016-02-29
举报