<?php echo preg_replace('\G/(?<=^.)[^@]*([^@]{2}@[^.]{2})[^.]*(.\.).*(?=.$)/i','*$1*$2*','example@example.com'); // e****le@ex****e.**m
You have javascript disabled. You will not be able to edit any code.