If you want to have more control on searching and replacing in PHP, try Regular Exprssion. I myself prefer PERL compatible regular expression, because is little bit more easy than its POSIX sibling. try preg_match(), pref_replace() etc. There is many tutorial about PERL Regex Syntax on the net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php