2019独角兽企业重金招聘Python工程师标准>>>
$str = '
test1,.
test2,
test3,';
print "\n|"."****原串*****************************************************"."\n";
echo $str."\n";
print "\n"."\n"."**********替换后***********************************************"."\n";
//$parm = '/(
$parm = '/
$replacy = 'http://baidu.com/uc/uploads/';
$re = preg_replace($parm,$replacy,$str,-1);
print $re;
print "\n";
echo $re[0];
print "\n";