title: Looking for regex to obfuscate email to t*@w***.de
body: <p>I have the following:</p>
  <pre><code>$pattern     = &quot;/^([\w_]{1})(.+)([\w_]{1}@)/u&quot;;
  $replacement = &quot;$1*$3***$4&quot;;
  $email       = &quot;testa@weste.de&quot;;
  echo &quot;obfuscated: &quot;.preg_replace($pattern, $replacement, $email).RT;
  </code></pre>
  <p>The result is: <code>t*a@***weste.de</code>
  But I would like to have: <code>t*@w***.de</code>
  How to grab the letter after the @ and not before. And how does it work with the .de part?</p>