ereg-replace removing whitespace...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux