|
Posted by cmk128 on 10/24/07 06:50
Hi
PHP's regular expression look like doesn't support .*? syntax. So i
cannot match the shortest match. For exmaple:
$str="a1b a3b";
$str1=ereg_replace("a.*b", "peter", $str1);
will produce "peter", but i want "peter peter", so how to?
thanks
from Peter (cmk128@hotmail.com)
Navigation:
[Reply to this message]
|