Let's say I have a line
var unmasked = 'AwesomeFatGorilla'
What I want to do is mask 50% + lines from the end.
var masked = unmasked.replace(
After replacement, the masked string should look like this:
AwesomeF•••••••••
Since there were 17 letters in my unmasked string, the last 9 letters were masked. Is there any Regex that works with this?
source
share