How to use variables in regular expressions in JavaScript

Published --