I need to remove some info contained in a text-area tag and have tried different things without positive results. The text I need to remove is contained between the "Address:" and the inmediatly following "br>".
I know it would be easier if they were some IDs, tags or classes to help indentify the correct place, but unfortunately I cant modify the content of the textarea
<textarea id="source">
[uncertain html code, maybe including other <br> tags]
Name: ABCDESFGHIJKLMN<br>
Address: THIS IS THE INFO I WOULD LIKE TO REMOVE <br>
Phone: 0123-456-7890<br>
[uncertain html code, maybe including other <br> tags]
</textarea>
What I have tried is the following code in different combinations:
var result = document.getElementById('source').value;
result = result.replace(/Address:.*br>/g, "");