title: Javascript -- get only the variable part of a regex match
body: <p>given:</p>
  
  <pre><code>var regexp = new RegExp("&lt;~~include(.*?)~~&gt;", "g");
  </code></pre>
  
  <p>What's the easist way in javascript to assign a variable to whatever's matched by .*?</p>
  
  <p>I can do this, but it's a little ugly:</p>
  
  <pre><code>myString.match(regexp).replace("&lt;~~include", "").replace("~~&gt;", "");
  </code></pre>