Gossamer Forum
Home : General : Internet Technologies :

how to delete some char form html ?

Quote Reply
how to delete some char form html ?
$texts = eregi_replace("Can\'t find it?! <a href=\"http://www.xxx.com\"> Click here</a>", "", $text);

i try it , but errors
Quote Reply
Re: [freefly] how to delete some char form html ? In reply to
Thats because eregi_replace is php code Tongue

So err are you actualy using perl or are you using php?
Quote Reply
Re: [Paul] how to delete some char form html ? In reply to
I use PHP.

thanks your answer.

I konw the error now.

it should be

$texts = eregi_replace("can't get enough\?\! <a href=\"http://www.xxx.com//\">click here</a>", "", $text);
Quote Reply
Re: [freefly] how to delete some char form html ? In reply to
I've moved your thread as this is the "Perl" forum.
Quote Reply
Re: [freefly] how to delete some char form html ? In reply to
You probably don't need to escape ! and also was that extra forward slash in the URL just a typo..or?