If that is my Text:
<textarea readonly id="rightbox" class="rightbox">
From: Emailadress
Sender: Emailadress
Reply-To: Emailadress
</textarea>
How can I read the Positions of Emailadress?
I tried it with indexof
var str = document.getElementById('rightbox').innerHTML;
var pos = str.indexOf('{Emailadress}');
I only get the Position of the 1. Emailadress. Is it possible to get all positions and write them in an Array?