Removing a substring between two characters (java)
Caution is advised when using regex to parse HTML (due its allowable complexity), however for "simple" HTML, and simple text (text without literal <
or >
in it) this will work:
String stripped = html.replaceAll("<.*?>", "");