Originally Posted by hacker
$content =~ s!<(s(?:cript|tyle))[^>]*>.*?</\1>!!gis
Works like a champ. Look at that beautiful backtracking and how I recycle the redundant parts of the regex, to combine two into one.
Heh... nice one. Why not compete for the most complex regular expression