in reply to Using s///e and it just doesn't feel right
Use one of the HTML::Parser family of modules. Your regex will fail if there spaces around the '=' or the id's are quoted.
After Compline,Zaxo