in reply to How to strip comments and whitespace from a regex defined with /x?
... and don't forget /(?# this is a comment )/.