title: How to concat two javascript variables and regex expression
body: <p>I want to be able to concat two variables with a regular expression in the middle.</p>
  
  <p>e.g.</p>
  
  <pre><code>var t1 = "Test1"
  var t2 = "Test2"
  var re = new RegEx(t1 + "/.*/" + t2);
  </code></pre>
  
  <p>So the result I want is an expression that matches this..</p>
  
  <pre><code>"Test1  this works   Test2"
  </code></pre>
  
  <p>How do I get a result where I am able to match any text that has Test1 and Test2 on the ends?</p>