title: Match regex up to first space
body: <p>I have to populate a shop's images and been provided with folders of images which arein the format, eg <code>BRL0368 Side.jpg</code>, <code>5510 Dura Guard Carpet.jpg</code>.</p>
  
  <p>Now what I want to do is chop all those down so I can just try and match up in excel the part numbers eg <code>"BRL0368.jpg"</code>, <code>"5510.jpg"</code></p>
  
  <p>I have something called regex renamer which takes a regex match &amp; a replacement value - and will recurse through a folder etc and batch rename.</p>
  
  <p>Unfortunately at the moment I don't have much expereince with regex so it's a bit confusing for me - I tried many different options but not having much luck.</p>
  
  <p>How do I say grab the first part (alpha &amp; digit) up to the first space and dump the rest?</p>
  
  <p>this is what I have been trying <code>([^\s]+)</code> - I also tried <code>\w</code> etc.</p>