Variables in regexp with JavaScript client

Thanks again for your response. This is very informative.