in reply to Removing Javascript

s/<(?:[^>'"]*|".*?"|'.*?')+script(?:[^<'"]*|".*?"|'.*?')+>.*?<(?:[^>'" +]*|".*?"|'.*?')+\/.*?script(?:[^<'"]*|".*?"|'.*?')+>/<script><\/scrip +t>/igsx;

Quick 'n dirty. But Ovid's solution is more reliable. Also I totally agree with cLive.