<?php $email = "testa@weste.de"; $pattern = "/^\w\K[^\s@]+@(\w)[^\s.@]+/"; $replacement = "*@$1***"; echo preg_replace($pattern, $replacement, $email);
You have javascript disabled. You will not be able to edit any code.