title: Regex to capture everything up to (but not including the 1st space and hyphen)
body: <p>Here is my samples string</p>
  
  <pre><code>Google Chrome-Helper -type=renderer -field-trial-handle=1
  </code></pre>
  
  <p>But I want just <code>Google Chrome-Helper</code></p>
  
  <p>Ive tried: <code>^.*[ ][-]</code> but captures up to the last parameter. </p>
  
  <p><a href="https://regex101.com/r/4BdeEf/1" rel="nofollow noreferrer">Example Here</a></p>