import java.io.BufferedReader;
import java.io.IOException;
import java.io.StringReader;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main
(String args
[]) { s += "<table>";
s += "<tr>";
s += "<td><a href=\"https://w...content-available-to-author-only...o.jp/\" ei=\"0001\" class=\"et\" target=\"_blank\">取り出したい文字列1</a></td>\n";
s += "<td><a href=\"https://w...content-available-to-author-only...o.jp/\" ei=\"0002\" class=\"et\" target=\"_blank\">取り出したい文字列2</a></td>\n";
s += "<td><a href=\"https://w...content-available-to-author-only...o.jp/\" ei=\"0003\" class=\"et\" target=\"_blank\">取り出したい文字列3</a></td>\n";
s += "</tr>";
s += "</table>";
String pt
= "<td><a href=\".+?\" ei=\"\\d+\" class=\"et\" target=\"_blank\">(.+?)</a></td>"; Pattern p = Pattern.compile(pt);
try {
while ((st = br.readLine()) != null) {
Matcher m = p.matcher(st);
if (m.find()) {
System.
out.
println(m.
group(1)); }
}
}
}
}
aW1wb3J0IGphdmEuaW8uQnVmZmVyZWRSZWFkZXI7CmltcG9ydCBqYXZhLmlvLklPRXhjZXB0aW9uOwppbXBvcnQgamF2YS5pby5TdHJpbmdSZWFkZXI7CmltcG9ydCBqYXZhLnV0aWwucmVnZXguTWF0Y2hlcjsKaW1wb3J0IGphdmEudXRpbC5yZWdleC5QYXR0ZXJuOwoKcHVibGljIGNsYXNzIE1haW4gewogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nIGFyZ3NbXSkgewoJCVN0cmluZyBzID0gIiI7CgkJcyArPSAiPHRhYmxlPiI7CgkJcyArPSAiPHRyPiI7CgkJcyArPSAiPHRkPjxhIGhyZWY9XCJodHRwczovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLm8uanAvXCIgZWk9XCIwMDAxXCIgY2xhc3M9XCJldFwiIHRhcmdldD1cIl9ibGFua1wiPuWPluOCiuWHuuOBl+OBn+OBhOaWh+Wtl+WIlzE8L2E+PC90ZD5cbiI7CgkJc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