<?php
$str='00160.Day';
$pattern = "/(.+?)('.Day')/i";
$replacement = "\${1}";
print preg_replace($pattern, $replacement, $str);
?>
Why the output is 00160.Day
,not 00160
?What is the matter with my Minimum matching regular expression?