title: Regex to get first two words of unknown length from a string
body: <p>Say I have a string with various words of unknown length. I plan to split the string by using a regular expression. Something like:</p>
  
  <pre><code>String resString = origString.split(".*//s.*//s")[0];
  </code></pre>
  
  <p>What would be the regular expression to get the first two words? I was thinking <code>.*//s.*//s</code>, so all characters, followed by a space, then all characters, followed by another space. But using that gives me the exact same string I had before. Am I going about this the wrong way?</p>
  
  <p>Any help would be appreciated!</p>