I have a requirement to replace the following strings in the given format through the regex. Any help would be appreciated.
- johnsmith@gmail.com => johxxxxx@xxxx.xxx (All the characters should be replaced with x other than the first three, @, and dot (.)).
- John Smith => Johx Smixx (All the characters should be replaced with x other than the first three characters from each letter)
- 9876543210 => 987xxx3210 (All the characters should be replaced with x other than the first three and the last four)
Thanks in advance.