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