I would like JavaScript style innerHTML in Java. For instance, I want to get 'TRUE' from the string below:
String control = "<div class='myclass'>TRUE</div>";
But my pattern seems to be off as find() returns false. Ideas anyone?
Pattern pattern = Pattern.compile(">(.*?)<");
Matcher matcher = pattern.matcher(control);
if(matcher.find()) {
result = matcher.group(1);
}