title: Ruby Regex gsub - everything after string
body: <p>I have a string something like:</p>
  
  <pre><code>test:awesome my search term with spaces
  </code></pre>
  
  <p>And I'd like to extract the string immediately after <code>test:</code> into one variable and everything else into another, so I'd end up with <code>awesome</code> in one variable and <code>my search term with spaces</code> in another.</p>
  
  <p>Logically, what I'd so is move everything matching <code>test:*</code> into another variable, and then remove everything before the first <code>:</code>, leaving me with what I wanted.</p>
  
  <p>At the moment I'm using <code>/test:(.*)([\s]+)/</code> to match the first part, but I can't seem to get the second part correctly.</p>