[EMAIL PROTECTED] (Electroteque) wrote in
news:[EMAIL PROTECTED]: 

> yet another regex question how could i hange the value within the
> quotes with preg_replace
> 
> php_value upload_max_filesize "5M"
> 
> 

$str = preg_replace("#php_value upload_max_filesize\s?['\"](.+?)[\"']#i", 
"php_value upload_max_filesize\"\\1\"", $str);

Should work.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to