
January 27th, 2000, 08:17 AM
|
|
Contributing User
|
|
Join Date: Oct 1999
Location: Annapolis, Maryland US
Posts: 113
Time spent in forums: < 1 sec
Reputation Power: 14
|
|
|
Sorry, I didn't pay attention to the question...
To remove it, try something like
<?
$var="blahblah<e>123456</e>booboo";
$var=ereg_replace("<e>[a-zA-Z0-9<>/]{1,}</e>", "", $var);
print"$var<br>";
?>
This will replace most HTML tag elements -> to blow away other stuff like asterisks, the @ sign, etc. just mess around with the regex a bit
if $var="<e>blahblah</e> 123456 <e>booboo</e>";
you will be left with ' 123456 '
[This message has been edited by Kyuzo (edited January 27, 2000).]
|