title: Using <string>.split (and a regular expression) to check for inner quotes
body: <p>I'm implementing a search in my website, and would like to support searching for exact phrases. I want to end up with an array of terms to search for; here are some examples:</p>
  
  <p><code>"foobar \"your mom\" bar foo"</code> => <code>["foobar", "your mom", "bar", "foo"]</code></p>
  
  <p><code>"ruby rails'test course''test lesson'asdf"</code> => <code>["ruby", "rails", "test course", "test lesson", "asdf"]</code></p>
  
  <p>Notice that there doesn't necessarily have to be a space before or after the quotes.</p>
  
  <p>I'm not well versed in regular expressions, and it seems unnecessary to try to split it repeatedly on single characters. Can anybody help me out? Thanks.'</p>