fork(1) download
  1. <?php
  2.  
  3. $s = "example@gmail.com";
  4. "/([\w-]{2})([-a-z0-9]*)(@[\w-]+)/i",
  5. function ($m) { return $m[1] . str_repeat("*", strlen($m[2])). $m[3]; },
  6. $s);
  7. echo $s;
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
ex*****@gmail.com