title: Java Regex - Get all words before substring in String
body: <p>I have a string which contains a sentence and I want to split it in half, based on a word.
  I have the regex <code>(\\w+) word</code> which I thought would get me all the words before "word" + "word" itself, then I could just remove the last four chars.</p>
  
  <p>However this doesn't seem to work.. any ideas what I've done wrong?</p>
  
  <p>Thanks.</p>