rendered paste bodyimport java.util.regex.Matcher;import java.util.regex.Pattern;public class test { /** * @param args */ public static void main(String[] args) { String text = "<td class=\"tableb\" width=\"25%\"><input class=\"input\" type=\"text\" name=\"subtitle\" value=\"The Social Network\" /></td>"; Pattern subtitlePattern = Pattern.compile("name=\"subtitle\" value=\"([^\"]*)"); Matcher match = subtitlePattern.matcher(text); if (match.find() == true) System.out.println(text.substring(match.start(1), match.end(1))); }}