Thanks, Robby. This worked. However I wasn't able to get any documentation on the siU parameters used in the command as in > $string= preg_replace("'<style[^>]*>.*</style>'siU",'',$string); Any pointers. -- Warm Regards ~~~~~~~~~~~~ Vinayak -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php