You can probably write it without the </SELECT> being in the replacement string, but IMHO it would be less readable.

Please note that s/// substitution can use other characters aside from / as separators, and in this case I chose to use # because your regular expression contains forward slash character that would otherwise have to be escaped making the regex less readable

If the $html string contains multiple lines, then the regexp above will only match </SELECT> if it is on the first line. You need to add the 's' modifier to treat the string as a single line. s#</SELECT>.*$#</SELECT>#s;
–
Sam ChoukriApr 13 '11 at 21:26