title: javascript regex .match stop at a certain string
body: <p>What should I add to this regular expression to stop the search at "/stopHere" and only return what it found up until that string?</p>
  
  <pre><code>var string = "http://website.com/#!/goodText=hello/hello//stopHere=badtext";
  
  var reg = string.match(/goodText=.*\/stopHere/);
  </code></pre>
  
  <p>this captures <code>["goodText=hello/hello/hello/stopHere"]</code>, so how would i make it exclude "/stopHere" ?</p>
  
  <p>Thanks!</p>