title: php preg_replace string extract
body: <p>Original regexp:</p>
  
  <pre><code>$str = '"foo" &lt;bar@baz.com&gt;';
  preg_replace('/\s(&lt;.*?&gt;)|"/', '', $str);
  </code></pre>
  
  <p>I would like to extract the following:</p>
  
  <pre><code>"foo" &lt;bar@baz.com&gt; extract only =&gt; foo
  &lt;bar@baz.com&gt;       extract only =&gt; &lt;bar@baz.com&gt;
  "" &lt;bar@baz.com&gt;    extract only =&gt; &lt;bar@baz.com&gt;
  </code></pre>
  
  <p>Thanks</p>