title: JavaScript regex pattern concatenate with variable
body: <p>How to create regex pattern which is concatenate with variable, something like this:</p>
  
  <pre><code>var test ="52";
  var re = new RegExp("/\b"+test+"\b/"); 
  alert('51,52,53'.match(re));
  </code></pre>
  
  <p>Thanks</p>