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