My problem: I need to delete and replace complex parts from a long HTML string.
Example:
// <div>
text = text.replaceAll("<div>", "");
This is not a problem. But div can also be <div class="anything">
. How can I detect and replace such passages? So if a part that is between < and > is unknown?