Re: [PHP] preg_replace(); [solved]

2007-02-02 Thread Steffen Ebermann
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

Re: [PHP] preg_replace(); [solved]

2007-02-02 Thread Sébastien WENSKE
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