Maybe you just mistyped that, but this would *probably* also match on s=""
or bar="", cause [ and ] are metacharacters.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
nice !
thanks Steffen & Ed !
i've just add '[src|background] *= *' to make sure that the replacement
takes effect only in THML tag's attributes
if (preg_match_all("![src|background] *= *\"(.+)\"!sU", $htmlContent,
$match))
{
for ($i=0; $i- Original Message -
From: "Steffen Eberma
2 matches
Mail list logo