title: Postgres regular expressions and regexp_split_to_array
body: <p>In postgresql, I need to extract the first two words in the value for a given column.  So if the value is "hello world moon and stars" or "hello world moon" or even just "hello world", I need "hello world".</p>
  
  <p>I was hoping to use <code>regexp_split_to_array</code> but it doesn't seem that I can use this and access the elements returned in the same query?  </p>
  
  <p>Do I need to create a function for what I'm trying to do? </p>