0

how can ı mask an e-mail with regex for java like this foo@bar.com f*o@b*****m ı used this String maskedEmail = email.replaceAll("(?<=.{1}).(?=[^@]*?.@)", "*"); but ı get this: f*o@bar.com my problem:ı cant control after @ ı want to control it like before @ at the same time. ıt is important for banned words without e-mail verification

mtgosling
  • 1
  • 1
  • 1

0 Answers0