title: Regex: Match until first occurrence met
body: <p>What I am trying is to match until first occurrence of <code>&amp;</code> met. Right now it is matching only the last occurrence of <code>&amp;</code>.</p>
  
  <p>My regular expression is</p>
  
  <pre><code>(?!^)(http[^\\]+)\&amp;
  </code></pre>
  
  <p>And I'm trying to match against this text:</p>
  
  <blockquote>
    <p>https://www.google.com/url?rct3Dj&amp;sa3Dt&amp;url3Dhttp://business.itbusinessnet.com/article/WorldStage-Supports-Massive-4K-Video-Mapping-at-Adobe-MAX-with-Christie-Boxer-4K-Projectors---4820052&amp;ct3Dga&amp;cd3DCAEYACoTOTEwNTAyMzI0OTkyNzU0OTI0MjIaMTBmYTYxYzBmZDFlN2RlZjpjb206ZW46VVM&amp;usg3DAFQjCNE6oIhIxR6qRMBmLkHOJTKLvamLFg</p>
  </blockquote>
  
  <p>What I need is:</p>
  
  <blockquote>
    <p>http://business.itbusinessnet.com/article/WorldStage-Supports-Massive-4K-Video-Mapping-at-Adobe-MAX-with-Christie-Boxer-4K-Projectors---4820052</p>
  </blockquote>
  
  <p><a href="https://regex101.com/r/rfM0sJ/1" rel="noreferrer">Click for the codebase.</a></p>