ereg_replace();

From: Date: Tue, 12 Nov 2002 16:49:14 +0000
Subject: ereg_replace();
Groups: php.general 
Request: Send a blank email to php-general+get-124025@lists.php.net to get a copy of this message
Hi, i'm trying to replace every instance of "<br>" within the "<pre>..</pre>" tags. i want all other breakrows to remain the same. i've tried numerous regular expressions, but i can't find a way to just replace the breakrows.. it replaces _everything_ bewteen <pre> and </pre>. example $string: test<br> test<br> test<br> <pre> testing<br> testing<br> </pre> test<br> test<br> i want that to look like: test<br> test<br> test<br> <pre> testing testing </pre> test<br> test<br> -- Gustaf Sjoberg <gs@vacfu.org> <(" <) <(" )> <( ")> (> ")>

« previous php.general (#124025) next »