PDA

View Full Version : Need help to clean quote tags



vol_freak
Sat 12th Aug '06, 10:08am
I have done a couple of test imports from my ipb board and I am having issues getting the code cleaned.

I get this:

<div class='quotetop'>QUOTE(USAF_Vol @ Aug 11, 2006 7:53 PM) 377686</div>

Post content here.
[/b]

I can get rid of alot of it with just the replacer array in cleaner.php but I need some help with an expression.

I need to delete
377686</div>[quote]. I need the expression since the post number will vary in each post. Can anyone help me? Please.

Thank you.

vol_freak
Sat 12th Aug '06, 2:30pm
This expression seems to work on its own:


preg_replace('#[snapb*?.*?quote];

It does what I need when I run it on a test file so maybe I have it input incorrectly in cleaner.php? I tried to guess based on another example I saw.


$text = preg_replace('#[snapb*?.*?quote]#siU', '', $text);
^^This example pretty much wiped out everything.