How to use a Variable in a Regular Expression in JavaScript

How to use a Variable in a Regular Expression in JavaScript