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[]) {
		String s = "";
		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);
		String st;
		BufferedReader br = new BufferedReader(new StringReader(s));
		try {
			while ((st = br.readLine()) != null) {
				Matcher m = p.matcher(st);
				if (m.find()) {
					System.out.println("Match");
					System.out.println(m.group(1));
				}
			}
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	}
}