Skip to content
Advertisement

Tag: masking

Masking of email address using reg expression

Trying to develop masking for email address using reg expression but not able to achieve the desired result. Input : harrypotter@howarts.com After masking I am looking for result something like this: What I tried is this reg expression: Answer Your question needs some clarification. Here is an answer making some assumptions: keep 2 leading and trailing chars of the name

Advertisement