mystring = "
<div class="text">
Spor
</div>
";
pattern ="<div class=\"text\">(.*)</div>";
Pattern regEx = Pattern.compile(pattern, Pattern.MULTILINE);
Matcher m = regEx.matcher(myString);
if (m.find()) {
match = m.group(1);
} else {
match = "---";
}
不工作?