I believe you need the /x modifier for #2 to work... or use ?# for the comment
Update: Oops, you've got /x there already... sorry, didn't notice. Perhaps it's because the regexp ends on a line after the # for the comment? That may be crazy talk... I don't know a whole lot about these regular expressions yet.
Alan "Hot Pastrami" Bellows
-Sitting calmly with scissors-