title: Keeping removed value with Preg_Replace
body: <p>I am using preg_replace to remove some content from a string. What I am wondering is if there is a way to keep the stuff that is removed in a different variable. Here is what I am using:</p>
  
  <pre><code>$city = preg_replace('/^([0-9]* \w+ )?(.*)$/', '$2', $content[2]);
  </code></pre>