I am trying to apply the regular expression /<.*?>/ in a Zoho Mail script with the replaceAll() function.
It never seems to work even though I can do it just fine on for example JSFiddle. See sample here:
console.log("to: <username@gmail.com> from: test <wef> wfw".replace(/<.*?>/, 'email'))
My goal is to replace all occurrences of to hide e-mail addresses.
Any idea what I am doing wrong?