title: Censor emails with PHP
body: <p>I'm using this simple code:</p>
  
  <pre><code>$raw = 'text hi@li.com text';
  $raw = preg_replace('&lt;[\w.]+@[\w.]+&gt;', '***@$2', $raw);
  </code></pre>
  
  <p>And i should get as output, something like <code>***@li.com</code>; while i get <code>***@</code></p>
  
  <p>I can't debug it, i don't know how what's wrong.</p>
  
  <hr>
  
  <p>So the solution is</p>
  
  <pre><code>preg_replace('&lt;([\w.]+)@([\w.]+)&gt;', '***@$2', $raw);
  </code></pre>
  
  <p>I had to add () to make a group.</p>