ereg-replace removing whitespace...

From: Date: Tue, 02 Dec 2003 20:43:16 +0000
Subject: ereg-replace removing whitespace...
Groups: php.windows 
Request: Send a blank email to php-windows+get-22273@lists.php.net to get a copy of this message
Hi... I'm trying to use ereg_replace to replace "[/URUB]" with "</strong><br />" The problem is that ther might, and might not, be any number of trailing whitespaces after the [/URUB]-tag... Everything between the [/URUB] (and the tag itself) and the next alphanumeric char should be replaced with "<strong><br />" So far I use: $str = ereg_replace("(\[/URUB\])+( |\n|\t|\r)*","</strong><br />",$str); which doesn't work, leaving a lot of whitespaces behind... Thanks for your help... .bobo

« previous php.windows (#22273) next »