>>>>> "MT" == Martin Thoma <[EMAIL PROTECTED]> writes:

 > Hello !  How can I use eregi_replace to replace every "><BR>" with
 > ">", except when it's "<B><BR>" ??

You need a lookbehind assertion...

$string = preg_replace( '/(?<!<b)><br>/i', '>', $string );

        -robin

-- 
Robin Vickery...............................................
Planet-Three,  3A West Point, Warple Way, London, W3 0RG, UK
Email: [EMAIL PROTECTED]     Phone: +44 (0)870 729 5444

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to