View Single Post
Old 03-18-2010, 06:33 PM   #5 (permalink)
dc2000
The Wanderer
 
Join Date: Mar 2010
Posts: 9
Thanks: 2
dc2000 is on a distinguished road
Default

Quote:
Originally Posted by delayedinsanity View Post
~</?[^b|i|u|ul|ol|li|br]+?>~

^ when used in a range means anything but ...

Sorry I'd go into more detail but I'm making dinner.
I tried your sample like this:
PHP Code:
$res preg_replace("/<\/?[^b|i|u|ul|ol|li|br]+?>/si"""$raw); 
and it still doesn't work. For example, it doesn't remove the following:

<a href="123">
or even
<le>
dc2000 is offline  
Reply With Quote