title: Return only a part of the match
body: <p>Here's an example <a href="http://jsbin.com/USONirAn/1" rel="nofollow">http://jsbin.com/USONirAn/1</a></p>
  
  <pre><code>var string = "some text username#Jake#  some text username#John# some text some text username#Johny# userphoto#1.jpg#";
  
  var type = "username";
  var regexp = new RegExp(type + "#(.*?)#");
  var matches = string.match(regexp);
  </code></pre>
  
  <p>Current regexp returns into <code>matches</code> an array with 3 items - <code>[username#Jake#, username#John#, username#Johny#]</code>.</p>
  
  <p>How do I make it return only a strings that I used to search for - <code>(.*?)</code>? In this example is should be an array <code>[Jake, John, Johny]</code>. Is it possible to get this only by changing a regexp function? </p>
  
  <p>Update:
  I've also tried to use <code>exec</code> function, but it returns both <code>[username#Jake#, Jake]</code>  <a href="http://jsbin.com/USONirAn/6" rel="nofollow">http://jsbin.com/USONirAn/6</a></p>