Zoho Mail - replaceAll() Regex Script

Zoho Mail - replaceAll() Regex Script

Hello!

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.

My goal is to replace all occurrences of <whatever text between> to hide e-mail addresses.

Any idea what I am doing wrong?