Originally Posted by Alexander
The particular RegEx I wrote for MyYahoo Mail is more complex; it uses techniques like lookahead assertion.
$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.