On Mar 11, 2009, at 3:53 AM, Austin Matzko wrote: > $text = preg_replace('#<(s(cript|tyle)).*?</\1>#si', '', $text); Heh ok I feel stupid now :) Thanks Austin!