I've been trying to figure out how to specifically mask certain parts of the string.
For example, if I were to mask first four letters in an email:
[email protected] => ****[email protected]
and
mask four numbers before the last four numbers of a phone number:
+15123452345 => +151****2345
What would each of these regex expressions be using replace?