Report question

Question: passing variable to a regexp in javascript