Tip preg_replace(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to ereg_replace().
If you haven't yet learned about regular expressions, I'd recommend you learn about Perl-compatible ones. Here's a good tutorial on them: http://tote-taste.de/X-Project/regex/index.php
Good luck
Bookmarks