PDA

View Full Version : help with preg_replace



muks
Thu 25th Dec '08, 1:07pm
Hi,

I want to delete these types of unparsed quotes


<div class='quotetop'>QUOTE (user1 @ Oct 11 2008, 09:12 PM) <{POST_SNAPBACK}></div>
<div class='quotetop'>QUOTE (user1 @ Oct 12 2008, 09:12 AM) <{POST_SNAPBACK}></div>I tried this one on cleaner.php


$text = preg_replace("#<div class='quotetop'>QUOTE\((.*) @(.*)\) \<{POST_SNAPBACK}>(.*)</div>#isU", '', $text);I thought it will be replaced by and then it would be easier to erase it with find and replace (cleaner.php) but it's still there.

:(

inohaw2speal
Sat 10th Jan '09, 4:12pm
I also need help with wildcards. (preg_replace)